Vipin Vipin - 2 months ago 13
Android Question

Encrypt and decrypt a string in android

Hi I want to encrypt a string in android inorder to store and later for showing I have to decrypt it. Is it possible to do md5 hashing or any other hashing in android.
Please provide me an example.

Answer

Read this article here->(How_to_encrypt_and_decrypt_strings.rhtml). It is pretty much what you want. The technique there uses .getInstance("AES"); If you want MD5 just replaces the AES with MD5.