- var_dump: documentation ( source)
- sha1: documentation ( source)
- md5: documentation ( source)
<?php
function encryptPassword($password)
{
$encryptedPassword = md5($password).md5("MOOYOUL"); // SHA1 암호화하고 Base64로 Encode한걸 또 다시 SHA1로 암호화
$encryptedPassword = sha1(sha1(sha1($encryptedPassword, true), true), false).sha1("MOOYOUL").sha1("merong");
return $encryptedPassword;
}
$original = "password";
$encrypted = encryptPassword($original);
var_dump($original, $encrypted);