Hypercubed / dice

Home Page:https://hypercubed.github.io/dice/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dice

Decode in case of Emergency (DICE) is a simple online and open-source tool to convert confidential messages into encrypted QRCodes to be decoded in case of emergency.

Messages are encoded using an encryption password and aes-256-cbc encryption, the same as the one used in the OpenSSL cli tool. All encryption and decryption happens within the browser and never sent to any server. Feel free to deploy your own server for this tool but don't worry messages can always be decrypted using the OpenSSL cli tool.

How to use

DICE is designed to be easily deployed to any static hosting sites. Feel free to clone and deploy DICE to your own site or use one of the following deployments:

Auto-deployed from this repo

Manual deployments (may be out of date)

Encoding Method

Text is encrypted using AES (with PBKDF2, CBC block and random IV) then base64 encoded using the same method used by openssl. openssl encryption and decryption command lines are shown below. The QR code is generated from the url safe base64 encoded encrypted text and the current application url (optionally disabled).

Examples:

> echo "secret message" | openssl enc -e -aes-256-cbc -base64 -A -pbkdf2
enter aes-256-cbc encryption password:
Verifying - enter aes-256-cbc encryption password:
U2FsdGVkX1+YgsU2eR8IuwEu8vBpQY6cvTU5jcx66Fc=

> echo -n "U2FsdGVkX1+YgsU2eR8IuwEu8vBpQY6cvTU5jcx66Fc=" | openssl enc -d -aes-256-cbc -base64 -A -pbkdf2
enter aes-256-cbc decryption password:
secret message

Note: The openssl command on MacOS may point to LibreSSL. If so you may need to install OpenSSL.

Note: The echo command on Windows/DOS may look a little different. Try removing the -n flag and quotes.

License

This project is licensed under the MIT License - see the LICENSE file for details

About

https://hypercubed.github.io/dice/

License:MIT License


Languages

Language:TypeScript 55.8%Language:HTML 26.1%Language:SCSS 9.9%Language:JavaScript 6.3%Language:Shell 1.9%