/totp

A less minimal TOTP generator based on MinTOTP.

Primary LanguagePythonMIT LicenseMIT

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.

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

Example

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