Create a token the is encrypted and signed. the encrypted contents must be sighed in some locals to be considered valid. Adds a bit more to the data relyability and consitancy. Forgery is a bit harder to accomplish.
contentAlg is the encryption algorithm for the token content
var contentAlg = "A128CBC-HS256"; //RSA-OAEP-256 --- Encryption method: A128CBC-HS256. AES 128-bit in CBC mode using HMAC-SHA-256-128 hash (HS256 truncated to 128 bits)
var store = JWK.createKeyStore();