Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 480 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 480 Bytes

Module 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)
}