diff options
author | Michael Koziarski <michael@koziarski.com> | 2008-11-25 20:27:54 +0100 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2008-11-25 20:51:30 +0100 |
commit | 07abc5efe1bc71902b0c517ef97dcb36564f2336 (patch) | |
tree | f7874f9b0a4d01e63245a637d79983f4cefbf058 /activesupport/lib/active_support.rb | |
parent | e126e1aac07d353e10fe9871fc3fc3f040cc8911 (diff) | |
download | rails-07abc5efe1bc71902b0c517ef97dcb36564f2336.tar.gz rails-07abc5efe1bc71902b0c517ef97dcb36564f2336.tar.bz2 rails-07abc5efe1bc71902b0c517ef97dcb36564f2336.zip |
Add a MessageEncryptor, just like MessageVerifier but using symmetric key encryption.
The use of encryption prevents people from seeing any potentially secret values you've used. It also supports and encrypt_and_sign model to prevent people from tampering with the bits and creating random junk that gets fed to
A motivated coder could use this to add an :encrypt=>true option to the cookie store.
Diffstat (limited to 'activesupport/lib/active_support.rb')
-rw-r--r-- | activesupport/lib/active_support.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activesupport/lib/active_support.rb b/activesupport/lib/active_support.rb index 3758f63eb0..8729d6de59 100644 --- a/activesupport/lib/active_support.rb +++ b/activesupport/lib/active_support.rb @@ -38,6 +38,7 @@ module ActiveSupport autoload :Gzip, 'active_support/gzip' autoload :Inflector, 'active_support/inflector' autoload :Memoizable, 'active_support/memoizable' + autoload :MessageEncryptor, 'active_support/message_encryptor' autoload :MessageVerifier, 'active_support/message_verifier' autoload :Multibyte, 'active_support/multibyte' autoload :OptionMerger, 'active_support/option_merger' |