For Android/Java, use this library https://github.com/vuthaiduy1990/android-wind-library/wiki/Crypto
For example:
CWCryptoUtils.sha1("Color the wind"); CWCryptoUtils.sha256("Color the wind"); CWCryptoUtils.hash("Color the wind", "SHA-224")