Password hashing in PHP >= 5.5

<?php password = $_POST['password']; echo password_hash(password, PASSWORD_BCRYPT); // $2y$10$.vGA1O9wmRjrwAVXD98HNOgsNpDczlqm3Jq7KnEd1rVAGv3Fykk1a hash = LEER_PASSWORD_DE_DB(); echo password_verify(password, hash); // true echo password_verify("nononono", hash); // false ?>

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.