Class: Wire4Auth::UtilsCompute
- Inherits:
-
Object
- Object
- Wire4Auth::UtilsCompute
- Defined in:
- lib/wire4_auth/webhook_verification_signature/utils_compute.rb
Class Method Summary collapse
Class Method Details
.compare_webhook_msg_signatures(message, key, header_signature) ⇒ Object
21 22 23 24 25 26 |
# File 'lib/wire4_auth/webhook_verification_signature/utils_compute.rb', line 21 def self.compare_webhook_msg_signatures(, key, header_signature) digest = OpenSSL::Digest.new('sha512') signature = OpenSSL::HMAC.hexdigest(digest, key, ) header_signature == signature end |