I am trying to develop a user authentication for my project. To realize this I have created a table have two columns having username and password. The username is stored as it is, where as the password is encrypted using jasypt.
i.e The password entered by the user during registration is encrypted using a encryption key and then placed in the corresponding column.
When the user wants to logging to the application, the program fetch the encrypted password of the same user, the password is decrypted using the same encryption key.
then the decrypted password is then matched with the one that is entered.
Is this the right way of implementing?
I did even found out that there are other ways to implement key and value pair. But I was not able to understand that. Kindly help with the resource. Or some brief explanation