cvonkleist / encrypted_cookie

AES-128 encrypted session cookies for Rack (and Sinatra and other frameworks).
MIT License
53 stars 14 forks source link

Improve crypto #2

Closed namelessjon closed 11 years ago

namelessjon commented 11 years ago

This patch fixes a few problems with the cryptography in the original version of the gem. I think it fixes all of them, while introducing no new ones, but I'm not a cryptographer. A better solution might be to add another dependency on rbnacl (and libsodium), but this does keep to a minimum of dependencies. Even if that dependency is openssl.

namelessjon commented 11 years ago

Haven't touched the manifest etc, as I have no idea how that works.