str_encrypt 클래스 코드 수정

This commit is contained in:
thisgun committed 2018-08-21 17:57:04 +09:00
1 parent a7a8f45301
commit 9834a0962e
1 file changed
+2 -2
+2 -2
View File
@@ -3288,12 +3288,12 @@ class str_encrypt
$result .= $char;
}
return base64_encode($result);
return strtr(base64_encode($result) , '+/=', '._-');
}
function decrypt($str) {
$result = '';
$str = base64_decode($str);
$str = base64_decode(strtr($str, '._-', '+/='));
$length = strlen($str);
for($i=0; $i<$length; $i++) {