Show HN: Pinhead – Adding 2FA to Your CLI (Linux, FreeBSD, OpenBSD, NetBSD)

Hi everyone,

I’ve developed a minimalist 2FA tool (TOTP) for CLI. My goal was to create something with the widest possible reach across Unix-like systems without the typical dependency bloat.

Key features:

- Pure ANSI C: No external dependencies beyond libc.

- Wide Portability: Tested and running on Linux, FreeBSD, OpenBSD, and NetBSD.

- Security focused: Fixed-width types, endianness-aware, and compiled with stack protection flags.

- Lightweight: Fast execution, ideal for integration into scripts and legacy infrastructure.

- Build for final users is gmake based but without autotools.

The project is hosted on Codeberg under the BSD-3-Clause license. I’m currently in the final polishing stage and would love to hear your thoughts on the code structure and portability.

Check it out here: https://codeberg.org/rafael-santiago/pinhead

3 points

voidbrainvoid

6 hours ago


0 comments