DEV: increase the length of backup codes

16 ^ 8 though not tiny but is a workable search space in the event of
breach, 16 ^ 16 is not.
This commit is contained in:
Sam Saffron
2020-01-21 15:32:06 +11:00
parent c677f8ee6a
commit bff9880d63
2 changed files with 3 additions and 2 deletions

View File

@@ -191,7 +191,7 @@ module SecondFactorManager
def generate_backup_codes
codes = []
10.times do
codes << SecureRandom.hex(8)
codes << SecureRandom.hex(16)
end
codes_json = codes.map do |code|