getotp

command module
v0.0.0-...-a85fa15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2016 License: GPL-3.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

GETOTP

Get your otp password generated by totp.

The program tries to read the environment variable OTP_SECRET, otherwise prompts for the secret.

The output is your one time password that can be piped to, for example, your clipboard.

When setting your environment variable in bash you might want to leave a space at the beginning of the line so it doesn't get saved to history.

To install:

If you have go installed you can compile it and install yourself:

go get github.com/xnaveira/getotp
go install github.com/xnaveira/getotp

Or you can download a compiled version for your platform as well:

Linux 386: https://github.com/xnaveira/getotp/blob/master/release/getotp-linux-386

Linux amd64: https://github.com/xnaveira/getotp/blob/master/release/getotp-linux-amd64

Linux arm: https://github.com/xnaveira/getotp/blob/master/release/getotp-linux-arm

Mac: https://github.com/xnaveira/getotp/blob/master/release/getotp-mac-amd64

Windows 386: https://github.com/xnaveira/getotp/blob/master/release/getotp-windows-386.exe

Windows amd64: https://github.com/xnaveira/getotp/blob/master/release/getotp-windows-amd64.exe

To use:
 export OTP_SECRET=YOURSECRET
getotp

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址