Advertisement
Guest User

tep_encrypt_password

a guest
Jan 24th, 2021
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.37 KB | None | 0 0
  1. ////
  2. // This function makes a new password from a plaintext password.
  3.   function tep_encrypt_password($plain) {
  4.     $password = '';
  5.  
  6.     for ($i=0; $i<10; $i++) {
  7.       $password .= tep_rand();
  8.     }
  9.  
  10.     $salt = substr(md5($password), 0, 2);
  11.  
  12.     $password = md5($salt . $plain) . ':' . $salt;
  13.  
  14.     return $password;
  15.   }
  16.  
  17. # https://research.reignofcomputer.com/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement