Created
July 5, 2018 18:36
-
-
Save lordjoo/852fb7ead3e5e77f5f4cbb63b74cb4c6 to your computer and use it in GitHub Desktop.
PHP Password Encrypt Function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Encryption Function Just Use This Function To Encrypt The TEXT | |
function encrypt($str){ | |
$str = sha1($str); | |
$str = md5($str); | |
$len = strlen($str); | |
$str1 = substr($str,0,$len/2); | |
$str2 = substr($str,$len/2,$len); | |
$str1 = md5($str1); | |
$str2 = sha1($str2); | |
$str = $str2.$str1; | |
$str = md5($str); | |
return $str; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment