C99 TOTP client - Keep It Simple, Stupid (KISS) Syntax: ./totp-kiss <hash (sha1/sha256)> <totp digits (4-8, usually 6)> <time step (seconds, usually 30)> You will be prompted for the base32 secret. Compile: ./make.sh As I've recently been forced to adapt TOTP, I wanted a simple CLI TOTP client that I can use on basically any computer. totp-cli is a popular option, and it works well for me, but I don't like Python, and as somewhat of a traditionalist, I don't like all the keychain jazz. Additionally, having a CLI program that does "just one thing" is nice: You get to manage your own security. Uses these projects: * https://github.com/clibs/sha1 * https://github.com/amosnier/sha-2 SECURITY NOTICE: This contains code generated by AI - I don't actually understand most of TOTP, but I know how to make C programs. I've fixed some of the AI's code that I don't like (mostly the types used for certain functions). I tested the code on x86/AMD64 (little endian) and 32-bit PowerPC (big endian), and the program seems to work just fine. But I make no guarantees.
Description
Languages
C
97.4%
Shell
2.6%