oathtool

OATH one-time password tool. More information: <https://www.nongnu.org/oath-toolkit/oathtool.1.html>.

Install

All systems
curl cmd.cat/oathtool.sh
Debian Debian
apt-get install oathtool
Ubuntu
apt-get install oathtool
Arch Arch Linux
pacman -S oathtool
image/svg+xml Kali Linux
apt-get install oathtool
Fedora
dnf install oathtool
Windows (WSL2)
sudo apt-get update sudo apt-get install oathtool
OS X
brew install oathtool
Raspbian
apt-get install oathtool

OATH one-time password tool. More information: <https://www.nongnu.org/oath-toolkit/oathtool.1.html>.

  • Generate TOTP token (behaves like Google Authenticator):
    oathtool --totp --base32 "secret"
  • Generate a TOTP token for a specific time:
    oathtool --totp --now "2004-02-29 16:21:42" --base32 "secret"
  • Validate a TOTP token:
    oathtool --totp --base32 "secret" "token"

© tl;dr; authors and contributors