Our encrpyted notes app is a desktop application which encrypts a user's notes.
cd app/app
npm install
npm start
cd backend
npm install
npm start
Write something about 2FA here....
- Compiling the verysecure module
- Setup build environment (Debian)
sudo apt install build-essential npm nodejs
sudo npm install -g node-gyp
- Install node-gyp:
npm install -g node-gyp
- Change directory:
cd /path/to/CSE4471/encryption
- Build module:
node-gyp configure; node-gyp build
- Relocate module:
- File is
./build/Release/verysecure.node
- File is
- Setup build environment (Debian)
- Using the verysecure module:
const crypto = require('./verysecure');
function encrypt(data, key){
var txt = Buffer.from(data,'ascii');
return crypto.encrypt(txt, key).toString('hex');
}
function decrypt(data, key){
var ctxt = Buffer.from(data,'hex');
return crypto.decrypt(ctxt, key).toString('ascii');
}
Write something about validation here....