csquared / fernet.js

Javascript implementation of Fernet symmetric encryption https://github.com/kr/fernet-spec
MIT License
73 stars 29 forks source link

check version byte #2

Closed kr closed 10 years ago

kr commented 10 years ago

It looks like this implementation parses the version byte and then ignores it. It should reject an otherwise valid token if the version byte is not 0x80.