https://github.com/sai-bhargav/go-otp
A CLI tool used for Multifactor Authentication by generating Time Based OTP
https://github.com/sai-bhargav/go-otp
authenticate authentication cli command-line-tool golang mfa otp otp-verification
Last synced: 5 months ago
JSON representation
A CLI tool used for Multifactor Authentication by generating Time Based OTP
- Host: GitHub
- URL: https://github.com/sai-bhargav/go-otp
- Owner: sai-bhargav
- License: mit
- Created: 2020-05-21T20:47:27.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-27T16:49:31.000Z (about 6 years ago)
- Last Synced: 2024-06-19T04:30:14.677Z (almost 2 years ago)
- Topics: authenticate, authentication, cli, command-line-tool, golang, mfa, otp, otp-verification
- Language: Go
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-otp
A CLI tool used for Multifactor Authentication by generating Time Based OTP
#### Getting Started
```sh
# Install the package
$ go get github.com/sai-bhargav/go-otp
# Go to the directory where the pkg is installed and build
$ cd $GOPATH/src/github.com/sai-bhargav/go-otp
$ go build
# You should see the new executable created 'go-otp' after the build
```
#### Usage
```sh
# Configure the app and its access token
$ go-otp -config -app=appName -token=YOURACCESSTOKENFORAPP
# To generate the OTP
$ go-otp -app=appName
```
#### Additional Info
Alternatively copy the executable to `/usr/local/bin` to make it available globally
```sh
cp go-otp /usr/local/bin
```