pub fn hmac_signature(secret: &str, data: &str) -> Result<String>
Expand description
Generates an HMAC-SHA256 signature for the given data using the provided secret.
This function creates a cryptographic hash-based message authentication code (HMAC) using SHA-256 as the underlying hash function. The resulting signature is returned as a lowercase hexadecimal string.
ยงErrors
Returns an error if signature generation fails due to key or cryptographic errors.