Implementing 2FA: How Time-Based One-Time Password Actually Works [With Python Examples]

Written by luizguilhermefr | Published 2020/07/06
Tech Story Tags: security | python | two-factor-authentication | cryptography | programming | one-time-password-resets | passwords | how-password-resets-work

TLDR Implementing 2FA: How Time-Based One-Time Password Actually Works [With Python Examples] The most popular 2FA method today is to use an authenticator app on your cellphone to generate a temporary password that expires within a minute or less. The TOTP algorithm is defined on the IETF RFC 6238, where it says the shared key "should be chosen at random or using a cryptographically strong pseudorandom generator properly seeded with a random value" It consists of issuing a secret key on your server and reading it on your phone, then using this secret key to generate passwords.via the TL;DR App

no story

Written by luizguilhermefr | Computer Scientist, Software Engineer @ Loadsmart, Machine Learning enthusiast
Published by HackerNoon on 2020/07/06