[Koha-bugs] [Bug 32011] 2FA - Problem with qr_code generation

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Oct 28 09:04:14 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32011

--- Comment #14 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
Doing some debugging now with:

use Modern::Perl;
use Convert::Base32;
use GD::Barcode;
use Koha::AuthUtils;
my $duplicate_secret = 4;
foreach( 1.. 50) {
    my $secret = Koha::AuthUtils::generate_salt( 'weak', 16 );
    $secret = $secret x $duplicate_secret;
    my $otpauth = encode_base32($secret);
    print "$otpauth\n";
    GD::Barcode->new( 'QRcode', $otpauth, { Ecc => 'M', Version => 10,
ModuleSize => 4 } );
}

The problem is the length of the secret. I think that you have a very long
secret?

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list