Closed (fixed)
Project:
TFA Basic plugins
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
12 May 2015 at 21:55 UTC
Updated:
7 Jan 2016 at 05:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
coltraneJust noting this issue is not about removing a security risk here, RFC 4226 recommends 128 bits and https://github.com/PHPGangsta/GoogleAuthenticator defaults to length of 16. This issue is about further hardening.
Comment #2
coltranePatch doubles the length.
Comment #3
gregglesThis seems great. In addition, how about an issue in https://github.com/PHPGangsta/GoogleAuthenticator/issues to extend the length?
Comment #4
gregglesI talked to ben more in person. I feel like 20 makes more sense as a balance of security and ux for people who have to type it instead of copying it.
Comment #6
coltraneCommitted as 20.
Comment #8
banviktor commentedI hate to be the one to resurrect this, but none of the TOTP applications I tried could provide a valid code for a 20 characters long seed.
I'm not sure whether it's the library's fault or the applications'.
I've tried Google Authenticator, FreeOTP and the Chrome plugins.
However they do work with 24 or 32 long seeds.
Comment #9
coltrane@banviktor, using the QR code and/or manually typing in seed? I'll test as well but since 4 more characters is negligible it's an acceptable change to make.
Comment #10
banviktor commented@coltrane In some applications I tried both, in some only the seed and in others only the QR code.
Comment #11
coltraneRan into this issue today with oath-toolkit. Patch increases seed length to 24
Comment #13
coltraneCommitted #11