hmac-sha1

Hmac implementations for SHA1 Hash-based Message Authentication Codes

Implementations for:

  • HmacSHA1

See HERE for basic usage example of Mac.

// Using CryptoRand from KotlinCrypto/random repo as an example
import org.kotlincrypto.random.CryptoRand
// ...

fun main() {
val key = CryptoRand.Default.nextBytes(ByteArray(100))

HmacSHA1(key)
}

Packages

Link copied to clipboard
common