Features: Adding keys, removing keys and printing secrets (#69)

This commit is contained in:
Erica
2023-08-14 11:02:25 +00:00
committed by GitHub
parent 2ce9fbe9b4
commit 642039d436
3 changed files with 262 additions and 11 deletions

View File

@ -43,6 +43,11 @@ Usage
$ gauth Google -b
477615
- Run `gauth KEYNAME -s` to retrieve an accounts secret from the config.
$ gauth Google -s
your_secret_for_google
- `gauth` is convenient to use in `watch`.
$ watch -n1 gauth
@ -53,6 +58,22 @@ Usage
from an existing Google Authenticator setup, on a phone to which you do not
have root access), then [gauthQR](https://github.com/jbert/gauthQR) may be useful.
Adding and removing keys
------------------------
- Run `gauth KEYNAME -a` to add a new key.
$ gauth Google -a
Key for Google: examplekey
Current OTP for Google: 306726
- Run `gauth KEYNAME -r` to remove an existing key.
$ gauth Google -r
Are you sure you want to remove Google [y/N]: y
Google has been removed.
Encryption
----------