Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/emlyn/otp
Simple command-line tool for generating OTP tokens
https://github.com/emlyn/otp
Last synced: 1 day ago
JSON representation
Simple command-line tool for generating OTP tokens
- Host: GitHub
- URL: https://github.com/emlyn/otp
- Owner: emlyn
- Created: 2018-01-29T00:18:24.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-29T10:02:38.000Z (almost 7 years ago)
- Last Synced: 2024-10-10T19:22:27.712Z (27 days ago)
- Language: Clojure
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OTP
Simple command line one-time password generator for MFA in clojure.
Mainly a proof of concept: you shouldn't really be storing the secret key anywhere once
entered into the authenticator app.Should generate the same tokens as Google Authenticator, Lastpass Authenticator etc.
Does not store the secret (to avoid dealing with securing it), so you must provide it each time.
If you use it with a real secret, make sure that is stored somewhere safe, and preferably
not with its corresponding password.## Usage
Make sure you have Clojure 1.9 or higher installed (on Mac `brew install clojure`).
You can provide the secret on the command line:
```bash
$ ./otp SECRET-HERE
123456
```But beware that this will make the secret visible to other programs and store it in your command line history, so is not safe for real world use.
You can therefore provide the secret on the standard input:
```bash
$ cat my-secret-file | ./otp
123456
```Or enter/paste it when prompted:
```bash
$ ./otp
Enter secret: *********************************
123456
```