Describe the bug
I've been checking your library and wanted to try to encrypt in GO and decrypt in nodeJS.
I've generated a token using a string as key that is 'vZ2WkkcJCeFXuQtpogPt2Ywof43X0h0x'
Then i went on doing this in javascript
I tried another library that is paseto-ts and it gave me the same error, it seems the tag always differ from the go implementation.
I'm not sure if i missuse something there but i didn't add any kind of custom things, here is my encrypt call
// account is a marshalled json
token, err := pasetov4.Encrypt(rand.Reader, "vZ2WkkcJCeFXuQtpogPt2Ywof43X0h0x", account, nil, nil)
Expected behavior
Encrypting on go should still have a valid decode using other language libraries
Okay i figured it out, i needed to append the k4.local. then encode my key to base 64 to make it work. I suppose i need to test some new things still :D
Describe the bug I've been checking your library and wanted to try to encrypt in GO and decrypt in nodeJS. I've generated a token using a string as key that is 'vZ2WkkcJCeFXuQtpogPt2Ywof43X0h0x' Then i went on doing this in javascript
It gave me this error 'Error: Invalid tag'
I tried another library that is paseto-ts and it gave me the same error, it seems the tag always differ from the go implementation. I'm not sure if i missuse something there but i didn't add any kind of custom things, here is my encrypt call
Expected behavior Encrypting on go should still have a valid decode using other language libraries