Infendro 8f80ceaf7f
All checks were successful
/ test (pull_request) Successful in 43s
Bump version to 1.2.1
2026-03-11 23:54:11 +01:00
2026-02-03 23:45:09 +01:00
2026-03-11 23:53:42 +01:00
2026-03-11 23:53:42 +01:00
2025-07-19 18:50:48 +02:00
2026-03-11 23:54:11 +01:00
2025-08-17 15:15:27 +02:00
2025-08-17 15:15:27 +02:00
2025-07-19 18:50:48 +02:00
2026-03-11 23:54:11 +01:00
2025-12-13 01:23:24 +01:00

kdf-kt

kdf-kt is a Kotlin Multiplatform library that provides common Key Derivation Functions.

Supported algorithms:

  • PBKDF2

Installation

Add the following to your build.gradle.kts.

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

dependencies {
    implementation("com.infendro:kdf:1.2.1")
}

Usage

fun main() {
    // create a PBKDF2 instance using HMAC SHA-256
    //   this example uses 32 bytes of length and 100_000 iterations
    val kdf = PBKDF2(32, 100_000, `SHA-256`())

    // securely hash value with some salt
    val value = "password".encodeToByteArray()
    val salt = "salt".encodeToByteArray()
    val hash = kdf.hash(value, salt)
}
Description
No description provided
Readme 183 KiB
Languages
Kotlin 100%