Infendro 1c178c3262
All checks were successful
/ publish (push) Successful in 2m38s
Merge pull request '1.5.0 Release' (#5) from develop into main
Reviewed-on: Infendro/mac-kt#5
2026-03-11 22:07:23 +00:00
2026-01-22 12:57:34 +01:00
2026-03-11 22:57:43 +01:00
2026-03-11 22:57:43 +01:00
2025-07-12 19:42:23 +02:00
2026-03-11 22:58:59 +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
2026-03-11 22:58:59 +01:00
2025-12-13 01:16:24 +01:00

mac-kt

mac-kt is a Kotlin Multiplatform library that provides common Message Authentication Codes.

Supported algorithms:

  • HMAC

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.5.0")
}

Usage

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%