mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Missing documentation about hash algorithm option for MessageVerifier [ci skip]
This commit is contained in:
parent
d50fbe952f
commit
1caf8f6fef
1 changed files with 6 additions and 0 deletions
|
@ -24,6 +24,12 @@ module ActiveSupport
|
||||||
# hash upon initialization:
|
# hash upon initialization:
|
||||||
#
|
#
|
||||||
# @verifier = ActiveSupport::MessageVerifier.new('s3Krit', serializer: YAML)
|
# @verifier = ActiveSupport::MessageVerifier.new('s3Krit', serializer: YAML)
|
||||||
|
#
|
||||||
|
# +MessageVerifier+ creates HMAC signatures using SHA1 hash algorithm by default.
|
||||||
|
# If you want to use a different hash algorithm, you can change it by providing
|
||||||
|
# `:digest` key as an option while initializing the verifier:
|
||||||
|
#
|
||||||
|
# @verifier = ActiveSupport::MessageVerifier.new('s3Krit', digest: 'SHA256')
|
||||||
class MessageVerifier
|
class MessageVerifier
|
||||||
class InvalidSignature < StandardError; end
|
class InvalidSignature < StandardError; end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue