Create a password in PHP

<?php $password = "Example"; echo password_hash($password, PASSWORD_DEFAULT); for($i = 0; $i < 3; $i++) { echo "<br>"; echo password_hash($password, PASSWORD_DEFAULT, array("cost" => ($i+10))); } ?>
You can generate a hash and salt for a string, this is the recommended way for creating passwords.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.