diff --git a/lib/TwoFactorAuth.php b/lib/TwoFactorAuth.php index 52d09ab..82b8501 100644 --- a/lib/TwoFactorAuth.php +++ b/lib/TwoFactorAuth.php @@ -52,7 +52,7 @@ public function __construct( /** * Create a new secret */ - public function createSecret(int $bits = 80): string + public function createSecret(int $bits = 160): string { $secret = ''; $bytes = (int)ceil($bits / 5); // We use 5 bits of each byte (since we have a 32-character 'alphabet' / BASE32)