Skip to content

A CLI tool to generate TOTP tokens compatible with Google Authenticator and oath toolkit PAM-login

License

Notifications You must be signed in to change notification settings

acacio/totp-token

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FOSSA Status

TOTP token generator tool

This tool can replace Google Authenticator and easily generate several secrets.

Reads ~/.totp-keys as it's config (so keep that file readable just by you).

Usage

Using a provided Google Authenticator key in the command line:

totp-token -k <SECRET>

Using a list of Google Authenticator secrets file under $HOME/.totp-keys:

totp-token -d <DOMAIN>

Typical use:

totp-token -d <DOMAIN> | pbcopy
ssh <host>   (PASTE CMD-v)

The format of the .totp-keys file is a list of domain/secret pairs: Note that the keys need to be capitalized (although some domains give you keys with lowercase characters).

Note: url, for now, is for documentation purposes only but might be useful inthe future.

secrets [
  { domain: "carta",
    url: "otpauth://totp/Microsoft:[email protected]?secret=XXXXXXXXXXXXXXXX&issuer=Microsoft",
    key: "XXXXXXXXXXXX"
  },
  { domain: "gmail",
    key: "YYYYYYYYYYYY"
  },
  { domain: "dropbox",
    key: "YOUR GOOGLE_AUTHENTICATOR SECRET HERE"
  }
]

Testing

Coverage Status

FOSSA Status

About

A CLI tool to generate TOTP tokens compatible with Google Authenticator and oath toolkit PAM-login

Resources

License

Stars

Watchers

Forks

Packages

No packages published