mirror of
https://github.com/angt/totp
synced 2024-12-25 09:58:46 +01:00
Update README.md
This commit is contained in:
parent
a58bc76804
commit
908ba9a889
1 changed files with 30 additions and 2 deletions
32
README.md
32
README.md
|
@ -1,5 +1,33 @@
|
||||||
# totp
|
# totp
|
||||||
A tiny command line utility to generate OTP tokens
|
A tiny command line utility to generate OTP tokens
|
||||||
|
|
||||||
$ echo -n JBSWY3DPEHPK3PXP | base32 -d | ./totp
|
## Build and install
|
||||||
506471
|
|
||||||
|
Clone the repository:
|
||||||
|
|
||||||
|
$ git clone https://github.com/angt/totp
|
||||||
|
$ cd totp
|
||||||
|
|
||||||
|
Then, run as `root`:
|
||||||
|
|
||||||
|
# make install
|
||||||
|
|
||||||
|
As usual, you can customize the destination with `DESTDIR` and `prefix`.
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
It has been thought for [secret](https://github.com/angt/secret),
|
||||||
|
maybe it will be directly integrated in a future version, in the meantime:
|
||||||
|
|
||||||
|
### Add a new TOTP key
|
||||||
|
|
||||||
|
$ echo -n JBSWY3DPEHPK3PXP | base32 -d | secret set test/totp
|
||||||
|
|
||||||
|
### Generate a TOTP token
|
||||||
|
|
||||||
|
$ secret show test/totp | totp
|
||||||
|
$ 123456
|
||||||
|
|
||||||
|
---
|
||||||
|
For feature requests and bug reports,
|
||||||
|
please create an [issue](https://github.com/angt/totp/issues).
|
||||||
|
|
Loading…
Reference in a new issue