Tag Archives: password encryption in php
6 Ways to Encrypt Password in PHP
PHP allows to encrypt the password by easy functions. Here is the six ways to encrypt the passwords.
Hash_hmac
hash_hmac — Generate a keyed hash value using the HMAC method
[code type=php]
<?php
echo hash_hmac('ripemd160', 'Stay foolish, stay hungry.', 'secret');
?>
[/code]
OUTPUT:
d96e9683178a9d6defedde594f7e1944cf8864b6
hash
hash — Generate a hash value (message digest)
[code type=php]<?php
echo hash('ripemd160', 'Stay foolish, stay hungry.');
?>[/code]
OUTPUT:
2f86cf7076249485b549ffc137ab644cb9c9e67a
sha1
sha1 — Calculate the




