🔥🥣
A wrapper script to setup and run HOTP (Hash-based message authentication code One Time Password).
- qrencode - QR generator
- wl-clipboard - Wayland clipboard copy tool (default)
- xclip - Server X clipboard
oathtool
is available in EPEL follow the instructions there to install EPEL depending on your version and distribution
Required:
dnf install -y oathtool
Optional:
dnf install -y qrencode
Required:
apt update
apt install -y oathtool
Optional:
apt update
apt install -y qrencode
Required:
pacman -Sy --noconfirm oath-toolkit
Optional:
pacman -Sy --noconfirm qrencode
Copy the script hot-oat
to a directory in your path, e.g. ~/.local/bin
These variables should be used to override the default values. Also, a config file can be placed under ~/.config/hot-oat.conf
to define custom values. See the example file hot-oat.conf
Environment Name | Default | Description |
---|---|---|
HOT_OAT_COPY_TOOL | wl-copy | The command to use to copy the password to the clipboard |
HOT_OAT_COPY_OPTIONS | -n -o | The options to pass to the copy command |
HOT_OAT_DIR | ~/.config/hot-oat |
The directory where the key and counter are stored |
- Thanks to pierreblanc for the idea