r/Hacking_Tutorials • • 7d ago

f2img: pack files into encrypted PNGs, tested round trip on Amazon Prime's unlimited photo storage

Post image

Python tool that turns files into actual images, not steganography. The encrypted bytes are the pixels.

Encodes any files or folders into lossless PNGs (tar + zstd + gpg), decodes back byte-identical. Big files get split across multiple ~10 MB images. Every image carries its own index and checksum, so renamed or shuffled images still decode and a damaged one gets caught.

https://github.com/Ymsniper/f2img

29 Upvotes

7 comments sorted by

3

u/ilmer 7d ago

Nice job

2

u/wildsweetiee 7d ago

this seems like such a clever workaround

1

u/Trick-Resolve-6085 6d ago

Thanks, wasn't my idea. Saw someone ask if renaming files to .jpg works (it doesn't), started digging and this came out

2

u/Tricky_Voice2829 6d ago

you maded it

1

u/Trick-Resolve-6085 6d ago

Kinda, it's just tar + zstd + gpg glued together in Python, plus a header per image so they decode in any order.

1

u/Tricky_Voice2829 5d ago

thanks for reply