Skip to content

Instantly share code, notes, and snippets.

@breiter
breiter / otp
Last active November 29, 2018 20:29
Script to drive oathtool to create TOTP one-time passwords for amazon, github, google, evernote, msft, etc.
#!/bin/sh
scriptname=`basename $0`
if [ -z $1 ]; then
echo "Generate OATH TOTP Password"
echo ""
echo "Usage:"
echo " $scriptname google"
echo ""
echo "Configuration: $HOME/.otpkeys"