diff options
author | Guillermo Iguaran <guilleiguaran@gmail.com> | 2014-01-29 10:48:49 -0800 |
---|---|---|
committer | Guillermo Iguaran <guilleiguaran@gmail.com> | 2014-01-29 10:48:49 -0800 |
commit | b242552430345aedd36bb0ab357089f9a0dc746f (patch) | |
tree | 5e09d9c86629843b036fbd717a5d4f4a1d180eb3 /activesupport | |
parent | 40e7fe3451df8e5b454f7d0472396d2429edc0e5 (diff) | |
parent | b23ffd0dac895aa3fd3afd8d9be36794941731b2 (diff) | |
download | rails-b242552430345aedd36bb0ab357089f9a0dc746f.tar.gz rails-b242552430345aedd36bb0ab357089f9a0dc746f.tar.bz2 rails-b242552430345aedd36bb0ab357089f9a0dc746f.zip |
Merge pull request #13692 from lukesarnacki/change-default-session-serializer
Allow session serializer key in config.session_store
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/message_encryptor.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/message_encryptor.rb b/activesupport/lib/active_support/message_encryptor.rb index 7773611e11..b019ad0dec 100644 --- a/activesupport/lib/active_support/message_encryptor.rb +++ b/activesupport/lib/active_support/message_encryptor.rb @@ -12,7 +12,7 @@ module ActiveSupport # This can be used in situations similar to the <tt>MessageVerifier</tt>, but # where you don't want users to be able to determine the value of the payload. # - # salt = SecureRandom.random_bytes(64) + # salt = SecureRandom.random_bytes(64) # key = ActiveSupport::KeyGenerator.new('password').generate_key(salt) # => "\x89\xE0\x156\xAC..." # crypt = ActiveSupport::MessageEncryptor.new(key) # => #<ActiveSupport::MessageEncryptor ...> # encrypted_data = crypt.encrypt_and_sign('my secret data') # => "NlFBTTMwOUV5UlA1QlNEN2xkY2d6eThYWWh..." |