diff --git a/src/Hash.php b/src/Hash.php index 620ea3b7..1ef07836 100644 --- a/src/Hash.php +++ b/src/Hash.php @@ -104,7 +104,7 @@ private static function costHash(int $cost, string $salt, string $password): str public static function ihmac(string $data, string $key, int $iter, string $algo = 'sha256'): string { // Can't perform negative iterations - $iter = abs($iter); + $iter = \abs($iter); // Perform iterative hmac calls // Make sure $iter value of 0 is handled @@ -177,7 +177,7 @@ public static function verify(string $input, string $hash, string $password): bo */ private static function dec2bin(int $dec): string { - return hex2bin(\str_pad(\dechex($dec), 8, '0', STR_PAD_LEFT)); + return \hex2bin(\str_pad(\dechex($dec), 8, '0', STR_PAD_LEFT)); } /**