spikex / strongbox

Secures ActiveRecord attributes with public key encryption
http://stuff-things.net/2009/04/17/introducing-strongbox/
MIT License
398 stars 42 forks source link

The symmetric => always option should check for existence of relevant db columns #8

Closed haarts closed 14 years ago

haarts commented 14 years ago

Maybe more of a feature request than anything else but using the (default) symmetric => :always option without the relevant database columns currently fails silently. E.g. the secret_iv and secret_key attributes are assigned and saving the AR model appears to work. But when reloading the model from the database obviously the required secret_iv and secret_key values are lost making the encrypted secret irretrievable.

spikex commented 14 years ago

That's a bug, no question! Fixed in the latest version.

haarts commented 14 years ago

Awesome! I'm using Strongbox now to great effect, thanks for the great work.

spikex commented 14 years ago

Your welcome! Thanks for reporting the problem.