instance method digest_matches_data?

Ruby on Rails 7.2.3

Since v7.0.10 Private

Available in: v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

digest_matches_data?(digest, data)

No documentation comment.

Parameters

digest req
data req
Source
# File activesupport/lib/active_support/message_verifier.rb, line 373
      def digest_matches_data?(digest, data)
        data.present? && digest.present? && ActiveSupport::SecurityUtils.secure_compare(digest, generate_digest(data))
      end

Defined in activesupport/lib/active_support/message_verifier.rb line 373 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::MessageVerifier

Type at least 2 characters to search.

↑↓ navigate · open · esc close