mirror of
https://github.com/codeguy/php-the-right-way.git
synced 2025-08-17 19:16:20 +02:00
fix vertical scrollbar
This commit is contained in:
@@ -14,8 +14,9 @@ In PHP 5.5 `password_hash` was introduced. At this time it is using BCrypt, the
|
||||
|
||||
Below we hash a string, and then check the hash against a new string. Because our two source strings are different ('secret-password' vs. 'bad-password') this login will fail.
|
||||
|
||||
{% highlight php %}
|
||||
<?php
|
||||
{% highlight php %}
|
||||
<?php
|
||||
|
||||
require 'password.php';
|
||||
|
||||
$passwordHash = password_hash('secret-password', PASSWORD_DEFAULT);
|
||||
|
Reference in New Issue
Block a user