DEV Community

Discussion on: 🛡️2FA with Python.

Collapse
 
amoir18 profile image
amoir18

choice('ABCDEFGHIJKLMNOPQRSTUVWXYZ01234567')

This will give a base32 digit error because 0 & 1 are not included in the base32 alphabet

it should be:

choice('ABCDEFGHIJKLMNOPQRSTUVWXYZ234567')

otherwise this is great!

Collapse
 
jothinkumar profile image
Jothin kumar • Edited

Thanks for telling, I changed it.