2018-03-11
This commit is contained in:
parent
af0e433845
commit
8b2b97d2d1
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue