module ActionHook::Security::Fingerprinting

Public Instance Methods

fingerprint() click to toggle source
# File lib/actionhook/security/fingerprinting.rb, line 5
def fingerprint
  if secret && serialized_body
    OpenSSL::HMAC.hexdigest(OpenSSL::Digest::SHA256.new, secret, serialized_body)
  end
end