Git Product home page Git Product logo

htmlbox's Introduction

htmlbox - encrypt HTML, decrypt in browser

What htmlbox does

Given a (HTML or plain text) file and a password, htmlbox encrypts the file and wraps the result into javascript which can decrypt it in (browser given the correct password, of course). See an example (the password is xkcd).

  • multiple passwords support
  • AES for encryption and SHA25 for key deriviation (from CryptoJS)

What htmlbox does not do

  • Store store the plaintext in HTML source
  • Authentication
  • if somebody knows contents of a message, they can generate a modified version of it without knowing the key

Dependencies

Installation

  • git clone git://github.com/andres-erbsen/htmlbox.git
  • cd htmlbox
  • export PATH=$PATH:$(pwd)
  • Add the installation directory to your persistent path if desired - otherwise you have to repeat the last two steps in each shell you want to use it.

Usage

  • Encrypt secret.html using password whocares and save the results to attatchment.html by executing: cat secret.html | htmlbox.py whocares > attatchment.html
  • Use passwords usual and tHe long pwd instead: cat secret.html | htmlbox.py usual "tHe long pwd" > attatchment.html
  • Use precomputed hashes (as hex) instead of passwords: cat secret.html | htmlbox.py -H 065ec384cc2993d900b4f800a36e21f561eb0e7b6b42f73d1deacbdb90e9b633 > attatchment.html
  • Convert plaintext to a html paragraph on the go: encrypt list of running processes: ps -e | htmlbox.py -p whocares > ps_e.html
  • customize page title: -t "Very Funny"
  • customize password prompt: -m "No plaintext the source, don't bother"

htmlbox's People

Stargazers

Angus H. avatar Josh Sandlin avatar Andres Erbsen avatar

Watchers

James Cloos avatar Andres Erbsen avatar

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.