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 ab93dd4 commit d996779Copy full SHA for d996779
lib/TwoFactorAuth.php
@@ -51,7 +51,7 @@ public function __construct(
51
/**
52
* Create a new secret
53
*/
54
- public function createSecret(int $bits = 80, bool $requirecryptosecure = true): string
+ public function createSecret(int $bits = 160, bool $requirecryptosecure = true): string
55
{
56
$secret = '';
57
$bytes = (int)ceil($bits / 5); // We use 5 bits of each byte (since we have a 32-character 'alphabet' / BASE32)
0 commit comments