I want to encrypt a number in android, for example 12345. How can I encrypt the number?
I want to encrypt a number in android , for example 12345 . How
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Converting to a string and then encrypting a string would probably help you out!
I suggest you check this post:
How to hash a string in Android?
Be sure you check ALL the answers! The first one is flawed and fixed in the second.. Which is again fixed in the 3rd.. Make sure you check through the entire thing before actually starting!
There’s also a post here: http://www.androidsnippets.com/encryptdecrypt-strings
This one is about AES encryptions instead though.
Hope this helps!