Hash a Password Run the following to hash a password using PHP. Replace mypass with the password you'd like to hash. php -r '$hash = password_hash("mypass", PASSWORD_DEFAULT); echo $hash."\n";'