Skip to content

ryansereno/TOTP.c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

TOTP Generator

Generate time-based one time passcodes in the command line.

Followup to my rust based TOTP generator

Based on the RFC 6238 Standard

Usage

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.

If OpenSSL headers are missing:

# Ubuntu/Debian
sudo apt-get install libssl-dev

# macOS 
brew install openssl

About

TOTP generator written in C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages