5 ms·
Don't just avoid sending plaintext passwords, also avoid storing them! Storing plaintext passwords makes all of your users vulnerable if someone gets their han
by sah 18y ago
Don't just avoid sending plaintext passwords, also avoid storing them! Storing plaintext passwords makes all of your users vulnerable if someone gets their hands on your database.
Instead, store the salted hash of the password, something like sha1(password + 'this string is a secret!'). When a user tries to log in, compute the hash again, and compare it to the one you stored.
- melvinram 18y agoIt's not stored as plaintext. It is salted as per the restful authentication plugin with some tweaks for additional security.