Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class FANG_encrypt {
- //Encrypt password for authentication
- function encrypt_pass($password) {
- $salt="4JK567tmnjl&%BL57ugb69JYI^HNU&"; //Salt, random string of characters
- $pass=md5(sha1($password . $salt)); //Double hash both password and salt, for triple security
- return $pass; //Return hashed password for use
- }
- }
- ?>
Add Comment
Please, Sign In to add comment