php - Using hashing to safely store user passwords -


Please try StackOverflow before asking a question. Many questions have already been answered. For example:

  • Hi

    I want you to not see your password even in a database ..

    So I used the hash function like this

      $ passowrd_hash = hash ('shawl', $ _ post ['password']);  

    Now easily I can store this password_hash value in the database. It will be something in encrypted form.

    Now the user knows his original password that he does not know this encrypted password.

    Now if he tries to login with this original password, he is not able to login.

    There is no way it can be decrypted and the user can log in. Therefore, he can get both password protection and login again.

    How to do this?

    You have been the user input password hash and is being compared.


    Comments

    Popular posts from this blog

    oracle - The fastest way to check if some records in a database table? -

    php - multilevel menu with multilevel array -

    jQuery UI: Datepicker month format -