Skip to content

C++ CLI for folder encryption with AES-256-GCM and USB-based key loading

11 pointsnextma2 comments
On HN

I built a Linux CLI tool that encrypts and decrypts folders using AES-256-GCM. It also hides file and folder names and stores the mapping in an encrypted file.

Repo: https://github.com/sahilPadmani/ACE-files-encryption

Comments

If this is a learning exercise, cool!

If this is a real thing, it needs a lot of work. Lots of failure modes, errors that are not being handled, sometimes exceptions, sometimes swallowing and printing to stdout, very inconsistent style, mixing and matching all kinds of C and C++ conventions, the fallback hard coded path of your specific user name + deep path ...

I would recommend not using this for any data that you actually care about.

When loading a key, it looks for meta.sec on the detected USB drive.

I would not trust a thumbdrive with a key that wasn't backed up elsewhere. Those things are unreliable on a good day, and I don't like data loss.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.