Skip to content

Instantly share code, notes, and snippets.

@lordjoo
Created July 5, 2018 18:36
Show Gist options
  • Save lordjoo/5221f85baf9b503837e8602774babae1 to your computer and use it in GitHub Desktop.
Save lordjoo/5221f85baf9b503837e8602774babae1 to your computer and use it in GitHub Desktop.
PHP Password Encrypt Function
// 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