diff --git a/lib/TwoFactorAuth.php b/lib/TwoFactorAuth.php index f3f867e..6517e6e 100644 --- a/lib/TwoFactorAuth.php +++ b/lib/TwoFactorAuth.php @@ -51,7 +51,7 @@ class TwoFactorAuth /** * Create a new secret */ - public function createSecret(int $bits = 80, bool $requirecryptosecure = true): string + public function createSecret(int $bits = 160, bool $requirecryptosecure = true): string { $secret = ''; $bytes = (int)ceil($bits / 5); // We use 5 bits of each byte (since we have a 32-character 'alphabet' / BASE32)