paragonie / paseto

Platform-Agnostic Security Tokens
https://paseto.io
Other
3.23k stars 108 forks source link

Error if symmetric key length is incorrect #161

Closed aidantwoods closed 1 year ago

aidantwoods commented 1 year ago

It is not strictly an encoding check, but in most cases passing in the wrong encoding will result in the wrong length. Probably it would be helpful to catch this type of error early.

Fixes #160