4 echo "usage: gpotp KEY-NAME"
8 while getopts h opt; do
26 if ! echo "$1" | grep -q /; then
27 key="$HOME/passwd/otp/$1.gpg"
31 if [ ! -e "$key" ]; then
32 echo "gpotp: $key: does not exist" >&2
36 gpg --quiet --decrypt --armor <"$key" | (
38 oathtool "--$type" -d "$dig" "$secret"