2018-03-11

This commit is contained in:
Visman 2018-03-11 13:19:52 +07:00
parent af0e433845
commit 8b2b97d2d1

View file

@ -119,7 +119,7 @@ class Secury
$chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_';
$result = '';
for ($i = 0; $i < $len; ++$i) {
$result .= \substr($chars, (\ord($key[$i]) % \strlen($chars)), 1);
$result .= $chars{\ord($key{$i}) % 64};
}
return $result;
}