2ami

command module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2018 License: MPL-2.0 Imports: 19 Imported by: 0

README

two-factor-authenticator agent

Two factor authenticator agent that stores 2FA secrets in system keyring, thus avoiding having them in cleartext (and accessible) somewhere on your computer.

NB: Current version is RC state

Keyring/Keychain encryption

OTP Secret keys are directly saved and retrieved from system keyring, and are not being kept in process active memory.

Supported secret storage backends are:

  • macOS/OSX Keychain
  • Secret Service ( Gnome )

A full list of of the available backends can be found here.

Security considerations: the secrets are still beign loaded in memory when adding a new key and generating a new token, even if for a small amount of time. I believe this is a safe enough approach ( as in for general use case ), please correct me if I'm wrong. :)

Note: This software has not been security reviewed.

Usage

Usage:
  two-factor-authenticator add <name> [--digits=<digits>] [--interval=<seconds>] [--verbose]
  two-factor-authenticator generate <name> [-c|--clip] [--verbose]
  two-factor-authenticator list [--verbose]
  two-factor-authenticator remove <name> [--verbose]
  two-factor-authenticator -h | --help
  two-factor-authenticator --version

Commands:
  add       Add a new key.
  generate  Generate a token from a known key.
  list      List known keys.
  remove    Remove specified key.

Options:
  -h --help             Show this screen.
  --version             Show version.
  --verbose             Enable verbose output.
  --digits=<digits>     Number of token digits
  --interval=<seconds>  Interval in seconds between token generation
  -c --clip             Copy result to the clipboard

Generated tokens

Generated token are formatted as Google Authenticator: zeros are prepended in place of missing digits.

TODO

  • custom token formatters
  • backup/restore functionalities

Known issues

Documentation

Overview

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Jump to

Keyboard shortcuts

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