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.

I never thought I'd see a browser support list that specifically includes "Dilo" or, in the last few years, "Internet Explorer", but apparently you're comprehensive.

I went to look for unauthenticated CBC mode like every time I see this sort of thing but it's actually GCM mode so, well consider me surprised.

This is brilliant. Keen to try it out.

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

Offline would be a better word.

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

cool project!

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

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

Yeah, 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.

I'm going to move this description to the top and re-up the post - I hope that's ok!

Somebody already has copied this innovative approach and travelled to past apparently: https://acme.com/software/securepage/

Methods like these go way further back than 2010... I recall one that had a reward promised if you could break it.

EDIT: Here's a patent from 2006 [0]

[0] https://image-ppubs.uspto.gov/dirsearch-public/print/downloa...

Here's one I remember: http://jgae.de/sdaeng.htm

From here: https://pajhome.org.uk/crypt/md5/uses.html#sdp

I used this many years ago, like literally 20 years ago. And it appears to have had a bounty! Maybe it is what you recall as well!

Cool!

This is great!

Lol @ "airgapped".

[flagged]

Maybe this is the source?

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

Added above. Thanks!

Correct