+ 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!

11th Apr 2019, 12:16 PM
Fabian Schipp
Fabian Schipp - avatar
1 Antwort
+ 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,
12th Apr 2019, 10:41 AM
Vahid Mafi
Vahid Mafi - avatar