The easiest way to get started is to clone the repository:
# Get the latest snapshot
git clone https://github.com/MikeShi42/challenge-server.git
# Change directory
cd challenge-server
# Install NPM dependencies
npm install
node app.js
# Start mongo
mongod- Visit http://localhost:3000/
- Click login on the top right
- Click sign in with github
- Click Generate Private Key in the nav bar
- Click Upload File in the nav bar after getting the private key
- Select a file to upload and then click submit
- Go to your downloads directory
- Run
dec.jswithnodewith the first argument being the encrypted file and the second argument being the private key. ex.node ~/Dropbox/Projects/challenge-server/dec.js file.enc id_rsa - Alternatively, if your encrypted file is smaller than ~200 bytes, you
can decrypt it directly using
openssl. ex.cat file.enc | openssl base64 -d -A | openssl rsautl -decrypt -oaep -inkey id_rsa