str_encrypt 클래스 코드 수정

This commit is contained in:
thisgun
2018-08-13 09:20:48 +09:00
parent a7a8f45301
commit 9834a0962e

View File

@ -3288,12 +3288,12 @@ class str_encrypt
$result .= $char; $result .= $char;
} }
return base64_encode($result); return strtr(base64_encode($result) , '+/=', '._-');
} }
function decrypt($str) { function decrypt($str) {
$result = ''; $result = '';
$str = base64_decode($str); $str = base64_decode(strtr($str, '._-', '+/='));
$length = strlen($str); $length = strlen($str);
for($i=0; $i<$length; $i++) { for($i=0; $i<$length; $i++) {