+ 3
Using salt to securely store password
Hey everybody I just started reading into usage salt to stroe passwords securely. I implemented an example here: https://code.sololearn.com/cKSRwPl8SH6h/#rb Is this a reasonable way to do this? I would like to use this in a production system and have to make sure I understand this technique correct before using it... Thank you guys in advance!
1 Resposta
+ 1
I am not a Rubi coder, however based on the fact that salt is a string made of random characters which are appended to the password string before applying a one-way hash function to it in order to prevent dictionary attacks (attacks in which a lot of common passwords are tested), your code's logic seems OK.
Thus,