instance method
digest_matches_data?
Ruby on Rails 7.2.3
Since v7.0.10 PrivateSignature
digest_matches_data?(digest, data)
No documentation comment.
Parameters
-
digestreq -
datareq
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