Thanks to visit codestin.com
Credit goes to github.com

Skip to content

jamesderlin/totp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Repository files navigation

totp

A less minimal TOTP generator based on MinTOTP.

Differences with MinTOTP

  • Prompts for the TOTP key.
  • Uses Python's getpass to read the TOTP key without echoing it.
  • Ignores all spaces in the TOTP key.
  • Reads only one TOTP key at a time.
  • Avoids printing Python backtraces if interrupted with Ctrl+C or if an invalid base32 character is entered for the TOTP key.
  • Prints the number of seconds remaining for the lifetime of the generated TOTP code.
  • If the generated TOTP code is about to expire, additionally prints the next TOTP code.

Auxiliary files such as build and test files also have been removed.

Example

$ totp
TOTP key: <unechoed input>
950840 (24s remaining)

About

A less minimal TOTP generator based on MinTOTP.

Resources

License

Stars

Watchers

Forks

Languages

  • Python 100.0%