Skip to content

Commit

Permalink
use 32 bit compatible pack() format
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm authored Jan 5, 2019
1 parent 1438831 commit 7757438
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OTP.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ private function getDecodedSecret(): string
*/
private function intToByteString(int $int): string
{
return pack('J', $int);
return pack("N*", 0, $int);
}

/**
Expand Down

0 comments on commit 7757438

Please sign in to comment.