Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 678 Bytes

README.md

File metadata and controls

31 lines (23 loc) · 678 Bytes

go-otp

A CLI tool used for Multifactor Authentication by generating Time Based OTP

Getting Started

# 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

# 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

cp go-otp /usr/local/bin