회원가입, 비회원 저장되는 비밀번호
암호화방식을 변경하려면
어느파일을 살펴봐야되나요
|
답변 1개 / 댓글 2개
채택된 답변
+20 포인트
2018-07-31 (화) 21:15:21
/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);
}
답변에 대한 댓글 2개
NOOOT
2018-07-31 (화) 21:19:19
2018-07-31 (화) 21:21:00
답변을 작성하려면 로그인이 필요합니다.
머 md5(password) 이런식으로 하는부분 있지않나요?