logoalt Hacker News

Show HN: Air-gapped file encryption as self-decrypting HTML page

31 points • by emurlin • today at 7:22 AM • 13 comments • view on HN

Air-gapped file encryption packed into a single, self-decrypting HTML page. Repo: https://github.com/ApelegHQ/ts-cms-ep-sfx

I was inspired by self-extracting archives. I wanted to share files with basically no dependencies. The goal was:

  1. Something that didn't require any installation (assuming a web browser)
  2. Have a single file with no network that could self-decrypt
  3. Be fully auditable
The second point is done by having (sort of(*)) reproducible builds and embedded OpenPGP signatures.

The first point is made by cleverly manipulating the HTML structure so that it can decrypt without breaking the PGP signature. It can even decrypt using bare openssl (which was a design goal too, though getting the exact structure right took some work and bug reports).

The third point is accomplished by the first two, and by the source being freely available.

(*) Depends on the OS at the moment.


Comments

som • today at 8:28 PM

A version of this that supported PKE would be cool. So you don't have to share a password in a side channel

lukan • today at 7:49 PM

I assume the "air gapped" part is merely indicating no internet required?

➕ show 1 reply
firefax • today at 8:10 PM

cool project!

also does everyone have to enable js to vote, or did i troll too hard? (sorry!)

DylanMerigaud • today at 7:41 AM

Self-decrypting HTML? That's an innovative approach.

➕ show 2 replies
nikhilkxmar • today at 2:32 PM

Cool!

FatalLogic • today at 7:45 AM

Maybe this is the source?

https://github.com/ApelegHQ/ts-cms-ep-sfx

➕ show 2 replies