Files
hash.kt/README.md
2025-10-04 12:07:30 +02:00

953 B

Kotlin Hash

This library provides various Cryptographic Hash Function implementations in Kotlin Multiplatform.

Features

Installation

Add the following to your build.gradle.kts.

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

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

Usage

import com.infendro.hash.SHA256

fun main() {
    // hash some value using SHA256
    val value = "...".encodeToByteArray()
    val hash = SHA256.hash(value)
}