diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-11-10 23:41:28 -0600 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2015-11-11 07:08:49 +0100 |
commit | 1583c8290a0bbb44ae684974e8fdd459f548f0f4 (patch) | |
tree | 4ebdb712cae3ae7cf3f131946816e16d3efb1d7d /activesupport | |
parent | 2f4f4d2cf1e4c5a442459fc250daf66186d110fa (diff) | |
download | rails-1583c8290a0bbb44ae684974e8fdd459f548f0f4.tar.gz rails-1583c8290a0bbb44ae684974e8fdd459f548f0f4.tar.bz2 rails-1583c8290a0bbb44ae684974e8fdd459f548f0f4.zip |
update docs for MessageEncryptor#new to recommend a KDF [ci skip]
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/message_encryptor.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/message_encryptor.rb b/activesupport/lib/active_support/message_encryptor.rb index c82a13511e..2dde01c844 100644 --- a/activesupport/lib/active_support/message_encryptor.rb +++ b/activesupport/lib/active_support/message_encryptor.rb @@ -34,8 +34,8 @@ module ActiveSupport # Initialize a new MessageEncryptor. +secret+ must be at least as long as # the cipher key size. For the default 'aes-256-cbc' cipher, this is 256 # bits. If you are using a user-entered secret, you can generate a suitable - # key with <tt>OpenSSL::Digest::SHA256.new(user_secret).digest</tt> or - # similar. + # key by using <tt>ActiveSupport::KeyGenerator</tt> or a similar key + # derivation function. # # Options: # * <tt>:cipher</tt> - Cipher to use. Can be any cipher returned by |