This application is an example of securing local data using the CryptoJS library.
In this example, private notes are protected with an encryption key and encryption IV with a local password one-way AES encrypted using password + name combination as encryption. Everything regarding the encryption mechanism is placed into a single service at /src/lib/services/LocalStorageService.ts
.
- Everything is offline
- User can setup private notes app using name and password
- After setup, the user can add private notes - all notes are encrypted
- Closing the page, or changing tabs will auto-lock the app
- User can unlock the app ONLY using its password, otherwise, app reset can be done, by deleting the existing setup
- Clone repository
- Install node modules using
npm install
command - Run the app using
npm run dev