Guest User

Untitled

a guest
Dec 15th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. <?php
  2. class FANG_encrypt {
  3. //Encrypt password for authentication
  4. function encrypt_pass($password) {
  5. $salt="4JK567tmnjl&%BL57ugb69JYI^HNU&"; //Salt, random string of characters
  6. $pass=md5(sha1($password . $salt)); //Double hash both password and salt, for triple security
  7. return $pass; //Return hashed password for use
  8. }
  9. }
  10. ?>
Add Comment
Please, Sign In to add comment