提交 1583c829 编写于 作者: P Paul Kehrer 提交者: Xavier Noria

update docs for MessageEncryptor#new to recommend a KDF [ci skip]

上级 2f4f4d2c
......@@ -34,8 +34,8 @@ class InvalidMessage < StandardError; end
# 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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册