totp-token

command module
v0.0.0-...-b02e1f8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

README

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:blabla@live.com?secret=XXXXXXXXXXXXXXXX&issuer=Microsoft",
    key: "XXXXXXXXXXXX"
  },
  { domain: "gmail",
    key: "YYYYYYYYYYYY"
  },
  { domain: "dropbox",
    key: "YOUR GOOGLE_AUTHENTICATOR SECRET HERE"
  }
]

Testing

Coverage Status

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL