neilmiddleton / attr_secure

MIT License
11 stars 1 forks source link

Does not work with nil or empty string values #16

Open msakrejda opened 10 years ago

msakrejda commented 10 years ago

If I secure an attribute and then try to create an object that has a value of nil or "" for that attribute, I get an error, because Fernet does not support encrypting those values. I'm not sure what the right solution is--sometimes the fact that the value is empty or nil can be an information leak in itself--but it'd be great if attr_secure could work with all (reasonable) attribute values.