Show HN: Lightweight FUSE-based encrypted, compressed filesystem for Linux githu...
Show HN @show
Show HN: Lightweight FUSE-based encrypted, compressed filesystem for Linux github.com · 2 points · 0 comments · HN thread
TL;DR ObFUSEcate is a zero-dependency, userspace C++ virtual block device that stores an ext4 filesystem inside a single opaque container file, adding ChaCha20-Poly1305 encryption, arithmetic-coding compression, sparse allocation and CRC-8/XOR shard error correction. It mounts through FUSE without root, with fuse2fs providing the ext4 layer. The README positions it for portable secure vaults rather than high-throughput or full-disk encryption.
- Each 16 KB logical block is encrypted with ChaCha20-Poly1305 using unique nonces and block-index AAD to resist block swapping and tampering.
- Blocks are compressed with a custom 32-bit arithmetic coder before encryption; incompressible blocks are stored uncompressed.
- The container is a single flat file, hiding directory trees, file counts and per-file sizes that file-level tools like gocryptfs and EncFS expose.
- Sparse thin-provisioning means a 10 GB volume initially uses only a few kilobytes; zerofree on unmount reclaims space from deleted files.
- Blocks are striped into 128-byte shards with CRC-8 checksums and an XOR parity shard, allowing single-shard recovery before cryptographic verification.
- The author describes it as a personal project for learning Linux systems programming and notes that I/O throughput is intentionally sacrificed.
Discussion The story has received 2 points and no comments at the time of this digest, so there is no discussion to summarize.
#encryption #FUSE #filesystem #Linux #compression #CPlusPlus