class Awscr::Signer::HMAC

Overview

Compute the HMAC digest

HMAC.digest("test", "test")

Defined in:

awscr-signer/core/hmac.cr

Constant Summary

INSTANCE = HMAC.new

Class Method Summary

Instance Method Summary

Class Method Detail

def self.digest(key : String | Slice(UInt8), data : String, algorithm : OpenSSL::Algorithm = OpenSSL::Algorithm::SHA256) #

[View source]
def self.hexdigest(key : String | Slice(UInt8), data : String, algorithm : OpenSSL::Algorithm = OpenSSL::Algorithm::SHA256) #

[View source]

Instance Method Detail

def digest(key : String, data : String, algorithm : OpenSSL::Algorithm) #

[View source]
def digest(key : Slice(UInt8), data : String, algorithm : OpenSSL::Algorithm) #

[View source]
def hexdigest(key : String, data : String, algorithm : OpenSSL::Algorithm) #

[View source]
def hexdigest(key : Slice(UInt8), data : String, algorithm : OpenSSL::Algorithm) #

[View source]