Show HN: Confcrypt – Encrypt Secrets in YAML/JSON Configs with FIDO2/Age/SSH

I built confcrypt to encrypt sensitive values in config files – hostnames, usernames, URLs stay readable.

Makes reviewing configs and debugging much easier than tools that encrypt everything.

Think sops, but simpler.

Multiple key types as recipients:

- Native age keys (X25519)

- SSH keys (ed25519, RSA) – use your existing keys

- FIDO2 devices (YubiKey 5, SoloKey, etc.) via hmac-secret

- YubiKey OTP via HMAC challenge-response

Hardware keys derive the private key on-demand with a touch – never stored on disk.

How it works:

- Pattern-based: only keys matching /password$/, /api_key$/, etc. (configurable) get encrypted

- Values encrypted with AES-256-GCM, key wrapped per recipient

- `confcrypt check` for CI – exits 1 if unencrypted secrets found

1 points maurice2k 9 months ago 0 comments

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton