encrypt-jwt-cookie
v0.1.3
Published
<p>This is a testing encryption code that encrypts and decrypt id that you store as cookie does not desplay user id and its not an md5 value but encryped</p>
Downloads
42
Readme
encrypt-jwt-cookie
Note this is under development but encryption and decryption are now working correctly as expected only numbers can be encrypted encrypt any user id or number you want.
install
npm install encrypt-jwt-cookieOr
npm i encrypt-jwt-cookieUsage
Encrypt your user id and store as a varchar in your cookie
var ejc = require("encrypt-jwt-cookie")
ejc.encrypt(2000)Decrypt to get your user id
var ejc = require("encrypt-jwt-cookie")
ejc.decrypt('r7Mu5HmeozE0P9G165_hXf6z46000==');just updated the encryption code and the decryption get random key for any of your user_id or any number.
