I am now working with encryption and decryption algorithm in java. As of now i am making use of the MD5 algorithm to encrypt the data. I can encrypt the value to a hexadecimal values.
I am not able to get original String value after decryption.
Is there is any way to achieve the original data?
If not how can we convert the hexadecimal values to Strings? Please help me out ASAP..
MD5 is not cipher, but a hash or digest. The difference is that ciphers can be reversed (in other words, you can get back the original text), but digests can't.
So for encryption -where you want the original text back- you can't use MD5. Ciphers you could use include AES, DESede and Blowfish, amongst others.