method

decrypt_and_verify

rails latest stable - Class: ActionDispatch::Cookies::EncryptedCookieJar

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v4.2.9) is shown here.

decrypt_and_verify(encrypted_message)
private

No documentation available.

# File actionpack/lib/action_dispatch/middleware/cookies.rb, line 534
        def decrypt_and_verify(encrypted_message)
          @encryptor.decrypt_and_verify(encrypted_message)
        rescue ActiveSupport::MessageVerifier::InvalidSignature, ActiveSupport::MessageEncryptor::InvalidMessage
          nil
        end