Skip to content

Latest commit

 

History

History
61 lines (51 loc) · 1.11 KB

README.md

File metadata and controls

61 lines (51 loc) · 1.11 KB

6.857 Final Project: Cocoon

Cocoon is a web storage application which allows users to query substring searches on their encrypted data.

See our presentation & writeup.

Setup (Linux)

Clone the repository

git clone https://github.com/izzygomez/cocoon
cd cocoon/

Install String Generator

unzip StringGenerator-0.1.3.zip
cd StringGenerator-0.1.3/
sudo python setup.py install
cd ..

Install SuffixTree

cd suffix_tree/
sudo python setup.py install
cd ..

Install PyCrypto

sudo pip install pycrypto

Install Node modules

npm install

To encrypt a plaintext file

cd crypto
python encrypt.py -f [path-to-file]

The ciphertext will be saved as ciphertext.txt, in the same directory that you ran encrypt.py from.

To run the server locally

Start MongoDB in a separate terminal window:

mkdir data
mongod --dbpath data/

Run the server

npm start

You can now use the web app at localhost:3000.