답변 1개 / 댓글 2개
채택된 답변
+20 포인트
/lib/common.lib.php
#3001 번째라인 부터
// 문자열 암호화
function get_encrypt_string($str)
{
if(defined('G5_STRING_ENCRYPT_FUNCTION') && G5_STRING_ENCRYPT_FUNCTION) {
$encrypt = call_user_func(G5_STRING_ENCRYPT_FUNCTION, $str);
} else {
$encrypt = sql_password($str);
}
return $encrypt;
}
// 비밀번호 비교
function check_password($pass, $hash)
{
$password = get_encrypt_string($pass);
return ($password === $hash);
}
답변을 작성하려면 로그인이 필요합니다.
머 md5(password) 이런식으로 하는부분 있지않나요?