Infendro fec960065d
All checks were successful
/ publish (push) Successful in 2m33s
bump version to 1.2.0
2025-11-10 18:32:17 +01:00
2025-07-12 19:42:23 +02:00
2025-11-10 18:32:08 +01:00
2025-11-10 18:32:08 +01:00
2025-07-12 19:42:23 +02:00
2025-11-10 18:32:17 +01:00
2025-10-03 13:21:19 +02:00
2025-10-03 13:21:19 +02:00
2025-07-12 19:42:23 +02:00
2025-10-04 11:53:14 +02:00
2025-07-12 19:42:23 +02:00

Kotlin MAC

This library provides various Message Authentication Code implementations in Kotlin Multiplatform.

Features

  • Generate message authentication codes.
  • Multiplatform support
    • JVM
    • JavaScript
    • Native (Linux)

Installation

Add the following to your build.gradle.kts.

repositories {
    maven("https://git.infendro.com/api/packages/Infendro/maven")
}

dependencies {
    implementation("com.infendro:mac:1.2.2")
}

Usage

import com.infendro.hash.SHA1
import com.infendro.mac.HMAC

fun main() {
    // create an HMAC instance using SHA1
    val hmac = HMAC(SHA1)

    // generate MAC
    val key = "secret".encodeToByteArray()
    val value = "Hello World!".encodeToByteArray()
    val mac = hmac.hash(key, value)
}
Description
No description provided
Readme 181 KiB
Languages
Kotlin 100%