WHStorage Client-Side
whSotorage is a way to encrypt localSotage
Installation
npm install express-whs whstorage --save
Usage
client/app.js
/** Get KEY and PREFIX*/ /** wait one second, because we send unsynchronized requests using fetch* and get data form storage.*/ /** try to decrypt without key*/// let value = sjcl.decrypt("bla123", localStorage.getItem('wh_user'))// console.log(value)
server/app.js
const express = const whs = /** Define Exprees App*/const app = ; app /** send to client*/app