totp.sh icon indicating copy to clipboard operation
totp.sh copied to clipboard

Shell script implementation of TOTP (RFC 6238) using openssl command line tool

totp.sh

This is a simple shell script implementation of TOTP (RFC 6238). It depends only on a base32 utility, date command supporting %s format, and openssl command line utility.

Usage

totp.sh < secretfile

where secretfile contains the base32-encoded secret.