mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-06-06 18:40:49 +00:00
Merge branch '3.0'
This commit is contained in:
commit
28019bb8f8
|
@ -378,6 +378,11 @@ abstract class Strings
|
|||
*/
|
||||
public static function increment_str(&$var)
|
||||
{
|
||||
if (function_exists('sodium_increment')) {
|
||||
sodium_increment($var);
|
||||
return;
|
||||
}
|
||||
|
||||
for ($i = 4; $i <= strlen($var); $i+= 4) {
|
||||
$temp = substr($var, -$i, 4);
|
||||
switch ($temp) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user