GithubHelp home page GithubHelp logo

Use Case about self-decrypting-html-page HOT 8 CLOSED

jadster avatar jadster commented on June 11, 2024
Use Case

from self-decrypting-html-page.

Comments (8)

derhuerst avatar derhuerst commented on June 11, 2024

I originally built this as part of html-vault and then pulled this part out of it. The idea is two have a tool that encrypts any message/secret and generates something that can decrypt itself. I see mainly two advantages of the HTML-based solution over others:

  • low entry-barrier: everyone has a web browser. everyone with a reasonably modern browser will be able to use the tool, without installing anything. it is also more platform-independent than other solutions.
  • self-contained: the generated self-decrypting page contains all the logic it needs to decrypt the encrypted messages it contains. it can be easily stored as a file.

With self-decrypting-html-page, you can use this functionality anywhere. The example in the readme uses sodium-encryption as an example, but you can pass any key & nonce you want.

from self-decrypting-html-page.

derhuerst avatar derhuerst commented on June 11, 2024

How it works:

from self-decrypting-html-page.

jadster avatar jadster commented on June 11, 2024

Can the page only contain an encrypted string? Or could you send a whole styled page in an encrypted format and have the styled page only show up in full after entering a password?

from self-decrypting-html-page.

jadster avatar jadster commented on June 11, 2024

I mean a page with images, links, css, etc.

from self-decrypting-html-page.

derhuerst avatar derhuerst commented on June 11, 2024

Currently the decrypted message is being shown in a text field. One could modify self-decrypting-html-page though, so that the message can e.g. be download as another HTML page.

On the other hand, what you suggest has security implications: If your browser downloaded the decrypted HTML automatically, you would store the decrypted message on disk by accident.

from self-decrypting-html-page.

jadster avatar jadster commented on June 11, 2024

The string is not saved to disk? Cached?

from self-decrypting-html-page.

derhuerst avatar derhuerst commented on June 11, 2024

Right now the string will only be shown in a text field. Try it at https://html-vault.jannisr.de !

from self-decrypting-html-page.

derhuerst avatar derhuerst commented on June 11, 2024

Please reopen if you have any other questions.

from self-decrypting-html-page.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.