notp is a CLI tool for generating one time passwords from CLI. Highly influenced by 2FA repository from rsc.
You can clone the repository and build it from the source, download using crate.io
or just download the binary that goes well with your OS
from the latest release
```bash
$ notp --help
$ notp --add taylan-google --key superSecretKey
$ notp --add taylan-google --stdin
$ notp --list
$ notp --get
notp uses default config path on the OS that you're using. Such as ~/.config/notp
for Linux, \AppData\Roaming\notp
for
Windows and ~/Library/Preferences/notp
for iOS and encrypts the file AES with the given key from CLI as an argument.
The default time-based authentication codes are derived from a hash of the key and the current time, so it is important that the system clock have at least one-minute accuracy.
Adding new secret: ```bash $ notp --add AWS --key ttaayyllaann Please enter the secret: NRNM7KGFTR6SUMPBAEMBETM2WGKVUWHH6Y4VEGNPZON3GMVXBHF... $
```
Checking existing secrets you have:
bash
$ notp --list
1. AWS
2. Google
$
Generating the OTP code:
bash
$ notp --get AWS --key ttaayyllaann
OTP code for the AWS: 442659
$
Deleting a secret:
bash
$ notp --delete AWS
AWS Deleted!
Using with CLI:
bash
$ notp --key ttaayyllaann -q --get AWS
442659