Jump to content
  • 0

encrypt password in the account table


pioneerr

Question


I am creating a panel for creating accounts via website.
The problem is that you are unable to encrypt the password to save the password in the account table.
Which command to save the encrypted password in the bank?

 

$pass1 = base64_encode(pack('H*', sha1(trim($password))));
$pass2 = base64_encode(hash('whirlpool', trim($password), true));

is not work.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...