mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Add documentation about signature_key for MessageEncryptor.new [ci skip]
This commit is contained in:
parent
fb5bd3c6f2
commit
9a79201fd4
1 changed files with 5 additions and 0 deletions
|
@ -50,6 +50,11 @@ module ActiveSupport
|
|||
# key by using <tt>ActiveSupport::KeyGenerator</tt> or a similar key
|
||||
# derivation function.
|
||||
#
|
||||
# First additional parameter is used as the signature key for +MessageVerifier+.
|
||||
# This allows you to specify keys to encrypt and sign data.
|
||||
#
|
||||
# ActiveSupport::MessageEncryptor.new('secret', 'signature_key')
|
||||
#
|
||||
# Options:
|
||||
# * <tt>:cipher</tt> - Cipher to use. Can be any cipher returned by
|
||||
# <tt>OpenSSL::Cipher.ciphers</tt>. Default is 'aes-256-cbc'.
|
||||
|
|
Loading…
Reference in a new issue