go-otp

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

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

Go to latest
Published: Apr 15, 2017 License: GPL-3.0 Imports: 7 Imported by: 0

README

OATH-TOTP App

  • Store TOTP account credentials in an sqlcipher'd database
  • Generate TOTP Codes
  • Generate QR Codes to add your accounts to multiple devices

This was born from an awful experience with Google Authenticator where I realised I could not export or backup my codes. This is really just temporary until KeePassXC gets TOTP support.

N.B.

  • Takes password from CLI. You should be using FDE anyway.
  • No HOTP support

Installation

$ go install github.com/erasche/go-otp

Usage

Initialize the database

$ go-otp init -password 'blah blah blah'

Register New Services

$ go-otp add -password $password -secretKey LONGSECRETKEY -account alice@local.host -issuer AWS

Overwrite Existing Service Entries

$ go-otp add -password $password -secretKey LONGSECRETKEY -account alice@local.host -issuer AWS -update

Generate Codes

$ go-otp -password $password gen
...............
[        alice@local.host ][             example.com ] 584325

Generate QR Codes

$ go-otp -password $password qr
QR Code stored to AWS__alice@local.host.png
QR Code stored to AWS__jane@university.edu.png
QR Code stored to DigitalOcean__alice@gmail.com.png
QR Code stored to GitHub__alice@gmail.com.png

LICENSE

GPLv3

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