From 08d7d70fadd0c477d369e750bc84bc5ad99d5ec3 Mon Sep 17 00:00:00 2001 From: Louis-Michel Couture Date: Wed, 10 Jul 2019 11:39:26 -0400 Subject: Update message verifier documentation [ci skip] Generate method of ActiveSupport Message verifier implied that the message is encrypted, but the message is simply Base64-encoded. --- activesupport/lib/active_support/message_verifier.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activesupport/lib') diff --git a/activesupport/lib/active_support/message_verifier.rb b/activesupport/lib/active_support/message_verifier.rb index c4a4afe95f..a5dc1181d8 100644 --- a/activesupport/lib/active_support/message_verifier.rb +++ b/activesupport/lib/active_support/message_verifier.rb @@ -178,8 +178,8 @@ module ActiveSupport # Generates a signed message for the provided value. # - # The message is signed with the +MessageVerifier+'s secret. Without knowing - # the secret, the original value cannot be extracted from the message. + # The message is signed with the +MessageVerifier+'s secret. + # Returns Base64-encoded message joined with the generated signature. # # verifier = ActiveSupport::MessageVerifier.new 's3Krit' # verifier.generate 'a private message' # => "BAhJIhRwcml2YXRlLW1lc3NhZ2UGOgZFVA==--e2d724331ebdee96a10fb99b089508d1c72bd772" -- cgit v1.2.3