- Always store password using reversible encryption so as the encrypted password can also be decrypted when need to be used.
- But at the same time it is also important to use the strong encryption algorithm.
- Here I'll demonstrate you one of the method for encrypting the data and storing them into database. And Vice-versa.
- Two Class file one is DBAccess where all database stuffs are done and another EncDecClass file for encrypting and decrypting the data.
- This code shows the button click event for storing the encrypted password into database. It calls "Encrypt" method of Class file for encrypting the password.
- Now let us see how Encrypt method works:
- And yes this is it. Here your password get decrypted.
- For more information leave comments please.
- And let me know the difficulties you are facing I'll definitely try to sort it out if I had gone through it.
- Good Luck!
No comments:
Post a Comment