help desk
When storing passwords, it is important to never store them in PLAINTEXT, not only for security purposes, but it's also illegal!
To safely store a password, you should be using a hashing algorithm (MD5, BCRYPT, etc) along with a salt
Prerequisites:
In your database, a field for each: the username, password, salt, and hashing method (if you plan on having multiple hashing methods)
TO STORE THE PASSWORD:
TO VERIFY THE PASSWORD:
Replied on: 2022-01-12 10:43:00