Reputation: 2019
I have been told to not be creating my own salt and hashing methods. Due to the ones already existing in java being far superior. After looking into it a bit, I do not quite understand the following;
how do generate and verify hashed and salted passwords in an contemporary way for a java web application?
Upvotes: 2
Views: 1302
Reputation: 5719
Here is usual approach storing password with Hashing.
What is the difference between creating the hash, and verifying it?
If the salt is random every time, don't you need a token to verify passwords other than the username?
If you see #2, token may be required for session purposes, but not for Authentication(checking if user is legitimate.)
There is good questions of same subject. There are good working examples related to same that you could utilize.
Upvotes: 2