0.1.3 • Published 5 years ago

encrypt-jwt-cookie v0.1.3

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

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-cookie

Or

npm i encrypt-jwt-cookie

Usage

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.

0.1.3

5 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago