| Crates.io | totper |
| lib.rs | totper |
| version | 0.1.2 |
| created_at | 2022-08-29 15:44:24.285463+00 |
| updated_at | 2022-08-29 19:04:38.667536+00 |
| description | A tool for stateless TOTP generation |
| homepage | |
| repository | https://github.com/Ciantic/totper |
| max_upload_size | |
| id | 654585 |
| size | 11,413 |
Very simple totp cli implementation, the real job is done by totp-lite
Usage: totper SECRET <STEP> <DIGITS> <ALG> <TIMESTAMP>
or pipe the input parameters
SECRET = Unpadded Base32 (RFC4648) encoded secret
STEP = Seconds of step, defaults to 30
DIGITS = Number of digits in the result, defaults to 6
ALG = Algorithm SHA1, SHA256 or SHA512, defaults to SHA1
TIMESTAMP = UTC Unix timestamp in seconds, defaults to current
Note: practically all services use SHA1 as default
Examples:
echo KZXW6ZDPN4 | totper
766369
totper KZXW6ZDPN4
766369
cargo install totper
I use this with GPG based pass password manager, which keeps the secrets in GPG encrypted files.