Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>you can use md5 or password, but be careful of <a href="http://en.wikipedia.org/wiki/Rainbow_table" rel="nofollow">rainbow tables</a></p> <pre><code>mysql&gt; select md5('a'); +----------------------------------+ | md5('a') | +----------------------------------+ | 0cc175b9c0f1b6a831c399e269772661 | +----------------------------------+ 1 row in set (0.00 sec) mysql&gt; select password('a'); +-------------------------------------------+ | password('a') | +-------------------------------------------+ | *667F407DE7C6AD07358FA38DAED7828A72014B4E | +-------------------------------------------+ 1 row in set (0.00 sec) </code></pre> <p>Some ppl just encrypt the password one way and add some dumb text, I.E</p> <p>lets say that you want to encrypt "Hello" and you are going to use MD5, you will do:</p> <pre><code>mysql&gt; select password('dumbtext Hello'); +-------------------------------------------+ | password('dumbtext Hello') | +-------------------------------------------+ | *1F2CE4EA3F6F689369453F090A660A9D0314AD90 | +-------------------------------------------+ 1 row in set (0.00 sec) </code></pre> <p>then if you want to validate session you just make the match between the password that the user use in the input field of your form:</p> <p>if (md5("dumptext". user(password_input))== field in database, then Session ON!. if not Reject</p> <p>here is the Mysql password <a href="http://dev.mysql.com/doc//refman/5.5/en/encryption-functions.html" rel="nofollow">encrypt information</a>, there are different options, that's up to you</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.
    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