https://github.com/vuthaiduy1990/android-wind-library/wiki/Crypto
Use this library. It supports many hash algorithm.
For example:
CWCryptoUtils.sha1("Color the wind");
CWCryptoUtils.sha256("Color the wind");
CWCryptoUtils.hash("Color the wind", "SHA-224")