encript password in php using crypt code example
Example 1: password encryption php
<?php
//HASH a password with the default algorithm
echo password_hash('rasmuslerdorf', PASSWORD_DEFAULT);
?>
Example 2: crypt password php
$password = crypt("myAmazingPassword");
echo $password; //$2y$10$QtXR3e79OC11UYQtT2qyh.Dl3zer2Z9oc5mij/exiY907dZeENTui