fernet / fernet-rb

Delicious HMAC Digest(if) authentication and AES-128-CBC encryption
MIT License
90 stars 22 forks source link

verify should take an option for binary (t/f) #14

Closed hgmnz closed 9 years ago

hgmnz commented 11 years ago
Fernet.verify(secret, binary: true)

Would assume the payload is binary and not try to UTF-8 encode it on deserialization.

The default is binary: false, which encodes as UTF-8 before returning to the user.