class ActiveSupport::MessageVerifier

def verify(*args, **options)

other_verifier.verify(signed_message) # => ActiveSupport::MessageVerifier::InvalidSignature
other_verifier = ActiveSupport::MessageVerifier.new 'd1ff3r3nt-s3Krit'

secret or was not Base64-encoded.
Raises +InvalidSignature+ if the message was not signed with the same

verifier.verify(signed_message) # => 'a private message'

signed_message = verifier.generate 'a private message'
verifier = ActiveSupport::MessageVerifier.new 's3Krit'

Decodes the signed message using the +MessageVerifier+'s secret.
def verify(*args, **options)
  verified(*args, **options) || raise(InvalidSignature)
end