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
-
apt-get install oathtool
- Ubuntu
-
apt-get install oathtool
- Arch Linux
-
pacman -S oathtool
- 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
- Dockerfile
- dockerfile.run/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