1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-12-11 00:29:36 +01:00

Merge branch '2.0' into 3.0

This commit is contained in:
terrafrost 2022-02-17 23:07:16 -06:00
commit b510af1cb5

View File

@ -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) {