We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb6802c commit d4a5026Copy full SHA for d4a5026
lib/TwoFactorAuth.php
@@ -52,7 +52,7 @@ public function __construct(
52
/**
53
* Create a new secret
54
*/
55
- public function createSecret(int $bits = 80): string
+ public function createSecret(int $bits = 160): string
56
{
57
$secret = '';
58
$bytes = (int)ceil($bits / 5); // We use 5 bits of each byte (since we have a 32-character 'alphabet' / BASE32)
0 commit comments