Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ////
- // This function makes a new password from a plaintext password.
- function tep_encrypt_password($plain) {
- $password = '';
- for ($i=0; $i<10; $i++) {
- $password .= tep_rand();
- }
- $salt = substr(md5($password), 0, 2);
- $password = md5($salt . $plain) . ':' . $salt;
- return $password;
- }
- # https://research.reignofcomputer.com/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement