Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. $salt1 = "mysite";
  2.  
  3. $salt1 = md5($salt1);
  4.  
  5. $salt2 = "passed";
  6.  
  7. $salt2 = md5($salt2);
  8.  
  9. $salt3 = "php";
  10.  
  11. $salt3 = md5($salt3);
  12.  
  13. $password1 = $salt1.$password1.$salt3;
  14.  
  15. <?php
  16. /**
  17. * In this case, we want to increase the default cost for BCRYPT to 12.
  18. * Note that we also switched to BCRYPT, which will always be 60 characters.
  19. */
  20. $options = [
  21. 'cost' => 12,
  22. ];
  23. echo password_hash("rasmuslerdorf", PASSWORD_BCRYPT, $options)."n";
  24. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement