Generate time-based one time passcodes in the command line.
Followup to my rust based TOTP generator
Based on the RFC 6238 Standard
gcc -o totp main.c -lssl -lcrypto
./totp
You will be prompted to enter your secret key; This should be a base32 encoded key (the code that would normally be entered into Authy/ Google Auth App) from your chosen account.
# Ubuntu/Debian
sudo apt-get install libssl-dev
# macOS
brew install openssl