From 77574384c0b2766cb28b656a1d32841c6afd869d Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Sat, 5 Jan 2019 20:14:18 +0100 Subject: [PATCH] use 32 bit compatible pack() format --- src/OTP.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OTP.php b/src/OTP.php index b8385ad3..55c2f9b9 100644 --- a/src/OTP.php +++ b/src/OTP.php @@ -124,7 +124,7 @@ private function getDecodedSecret(): string */ private function intToByteString(int $int): string { - return pack('J', $int); + return pack("N*", 0, $int); } /**