module Digest::HMAC
HMAC (RFC 2104).
Class methods
def self.sha256(key: Bytes | String, data: Bytes | String) -> Bytes
The HMAC-SHA-256 of data under key: 32 bytes.
Digest::HMAC.sha256("key", "The quick brown fox jumps over the lazy dog").hex[0, 16]
# => "f7bc83f430538424"