hmac

fun hmac(bytes: ByteArray, key: String): String(source)

Computes RFC 2104-compliant HMAC signature. Copied/modified slightly from amazon.webservices.common.Signature Contributed by Henry Thompson, used with permission

Return

The Base64-encoded RFC 2104-compliant HMAC signature.

Parameters

bytes

The data to be signed.

key

The signing key.