yubikey-otp

command module
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: MIT Imports: 1 Imported by: 0

README

YubiKey OTP

A command line tool that lets you search for TOTP (oath) secrets on your YubiKey with fuzzy search and easily copies them to your clipboard after selecting.

Installation:
go install github.com/MarkusZoppelt/yubikey-otp@latest
Usage
Search, display and copy YubiKey OTP codes.
A YubiKey is required to use this tool. After connecting the YubiKey, run the
yubiky-otp command to display the OTP codes. The codes are displayed in a fuzzy
searchable list. Select the code you want to copy to the clipboard.

Usage:
  yubikey-otp [flags]

Flags:
  -h, --help        help for yubikey-otp
  --device string   YubiKey device ID
  --verbose         Enable verbose logging
Motivation:

ykman is a powerful and useful tool, but running ykman oath accounts list and ykman oath accounts code <Account:user> just for getting TOTP secrets feels long and convoluted. And even then you have to select the TOTP code and copy it manually... like an animal! yubikey-otp has a nicer UX imho. Try it out! ;)

Known issues
Conflict with yubikey-agent

yubikey-agent takes a persistent transaction so the YubiKey will cache the PIN after first use. To mitigate that issue, yubikey-otp will run killall -HUP yubikey-agent during init.

Don't worry, yubikey-agent will restart the next time you want to use it.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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