Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you really want to salt randomly than it can be done only by generating the random salt with php and encrypting the password with that salt and storing both salt key and password in two fields of the table. Table must have salt field and password field. However if you just want to use mysql to do encryption than have a look in here <a href="http://dev.mysql.com/doc/refman/5.5/en//encryption-functions.html" rel="nofollow noreferrer">http://dev.mysql.com/doc/refman/5.5/en//encryption-functions.html</a></p> <p>When we validate a user's login credentials we follow the same process, only this time we use the salt from our database instead of generating a new random one. We add the user supplied password to it, run our hashing algorithm, then compare the result with the hash stored in that user's profile.</p> <h1>The links below may give you some more ideas.</h1> <p><a href="https://stackoverflow.com/questions/7270526/how-do-you-securely-store-a-users-password-and-salt-in-mysql">How do you securely store a user&#39;s password and salt in MySQL?</a></p> <p><a href="https://stackoverflow.com/questions/1219899/where-do-you-store-your-salt-strings">Where do you store your salt strings?</a></p> <p><a href="https://stackoverflow.com/questions/3740443/how-insecure-is-a-salted-sha1-compared-to-a-salted-sha512">How insecure is a salted SHA1 compared to a salted SHA512</a></p> <p><a href="https://stackoverflow.com/questions/1645161/salt-generation-and-open-source-software/1645190#1645190">Salt Generation and open source software</a></p> <p>I hope you got the idea now.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload