class Awscr::Signer::HMAC
- Awscr::Signer::HMAC
- Reference
- Object
Overview
Compute the HMAC digest
HMAC.digest("test", "test")
Defined in:
awscr-signer/core/hmac.crConstant Summary
-
INSTANCE =
HMAC.new
Class Method Summary
- .digest(key : String | Slice(UInt8), data : String, algorithm : OpenSSL::Algorithm = OpenSSL::Algorithm::SHA256)
- .hexdigest(key : String | Slice(UInt8), data : String, algorithm : OpenSSL::Algorithm = OpenSSL::Algorithm::SHA256)
Instance Method Summary
- #digest(key : String, data : String, algorithm : OpenSSL::Algorithm)
- #digest(key : Slice(UInt8), data : String, algorithm : OpenSSL::Algorithm)
- #hexdigest(key : String, data : String, algorithm : OpenSSL::Algorithm)
- #hexdigest(key : Slice(UInt8), data : String, algorithm : OpenSSL::Algorithm)
Class Method Detail
def self.digest(key : String | Slice(UInt8), data : String, algorithm : OpenSSL::Algorithm = OpenSSL::Algorithm::SHA256)
#
def self.hexdigest(key : String | Slice(UInt8), data : String, algorithm : OpenSSL::Algorithm = OpenSSL::Algorithm::SHA256)
#