JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 13
  • Score
    100M100P100Q52834F
  • License MIT

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

Package Exports

  • encrypt-jwt-cookie

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (encrypt-jwt-cookie) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

##encrypt-jwt-cookie


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

Note this is under development but encryption and decryption are now working correctly as expected only numbers note that no texts encrype any user id or number you want

####Encrypt your user id and store as a varchar in your cookie

var ejc = require("encrypt-jwt-cookie")
ejc.encrypt(254)

####Decrypt to get your user id

var ejc = require("encrypt-jwt-cookie")

ejc.decrypt('xoJR0yWgKrfITst33009270167==');