class ActiveWebhook::Verification::HMACSHA256Adapter

Public Instance Methods

signature() click to toggle source
# File lib/active_webhook/verification/hmac_sha256_adapter.rb, line 11
def signature
  Base64.strict_encode64(OpenSSL::HMAC.digest("sha256", secret, data))
end
strategy() click to toggle source
# File lib/active_webhook/verification/hmac_sha256_adapter.rb, line 15
def strategy
  "Hmac-SHA256"
end