Module: OpenSSL::HMAC

Defined in:
lib/bormashino/stub/openssl.rb

Overview

stub module which won’t work on ruby.wasm

Class Method Summary collapse

Class Method Details

.hexdigest(_, secret, data) ⇒ Object



12
13
14
# File 'lib/bormashino/stub/openssl.rb', line 12

def self.hexdigest(_, secret, data)
  Digest::SHA2.hexdigest("#{secret}#{data}")
end