A simple Key/Value storage, using MongoDB as the database.
- Storing data securely in an untrusted MongoDB database.
This application uses RSA encryption algorithm to encrypt the given plain text on the client-side using the public key, then stores the ciphertext in a MongoDB collection. Decryptobox (https://github.com/arekmano/DecryptoBox) can then be used to decrypt the ciphertext into plain text once again, using the private key, on a trusted machine.
- Clone the repository:
git clone [email protected]:arekmano/CryptoMessageBox.git
- Generate an RSA public/private key pair:
git clone [email protected]:arekmano/CryptoMessageBox.git
- Replace the public key in
dev/js/constants.js
with the generated key. - Run npm install:
npm install
- Run the following gulp task:
gulp bundle
- The project is now ready to run using
node app.js