Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $salt1 = "mysite";
- $salt1 = md5($salt1);
- $salt2 = "passed";
- $salt2 = md5($salt2);
- $salt3 = "php";
- $salt3 = md5($salt3);
- $password1 = $salt1.$password1.$salt3;
- <?php
- /**
- * In this case, we want to increase the default cost for BCRYPT to 12.
- * Note that we also switched to BCRYPT, which will always be 60 characters.
- */
- $options = [
- 'cost' => 12,
- ];
- echo password_hash("rasmuslerdorf", PASSWORD_BCRYPT, $options)."n";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement