password encryption php
snippet in php

password hash php

user7443

//hash password
$hashed_password = password_hash($password, PASSWORD_DEFAULT);

//verify password
password_verify($password, $hashed_password); // returns true

password encryption php

user4130


<?php
  //HASH a password with the default algorithm
  echo password_hash('rasmuslerdorf', PASSWORD_DEFAULT);
?>