sha256-kt

Implements SHA-256 hashing with a minimal API to compute 32-byte digests from byte arrays; compact, lightweight, reference-derived, suitable for embedding.

JVMKotlin/Native
GitHub stars1
Authorsasyncant
Dependents0
Creation dateover 5 years ago

Last activity8 months ago
Latest release1.1 (8 months ago)

sha256-kt

Pure Kotlin SHA-256 hash algorithm implementation that can be used on any Kotlin target platform (js, jvm, native).

Ported from C implementation by Brad Conte, https://github.com/B-Con/crypto-algorithms.

Like the original C implementation, this code is released into the public domain.

Usage

import com.asyncant.crypto.sha256

val input = "Hello world!".encodeToByteArray()
val hash = sha256(input)

Download

The library can be found on Maven Central here.

Gradle

implementation("com.asyncant.crypto:sha256-kt:1.1")

Maven

<dependency>
    <groupId>com.asyncant.crypto</groupId>
    <artifactId>sha256-kt</artifactId>
    <version>1.1</version>
</dependency>

Contributing || Contact

For public matters, feel free to create issues or pull requests on the GitHub project.

For other matters, e.g. security issues, you can e-mail me at <project>@<github-username>.com.

JVMKotlin/Native
GitHub stars1
Authorsasyncant
Dependents0
Creation dateover 5 years ago

Last activity8 months ago
Latest release1.1 (8 months ago)

sha256-kt

Pure Kotlin SHA-256 hash algorithm implementation that can be used on any Kotlin target platform (js, jvm, native).

Ported from C implementation by Brad Conte, https://github.com/B-Con/crypto-algorithms.

Like the original C implementation, this code is released into the public domain.

Usage

import com.asyncant.crypto.sha256

val input = "Hello world!".encodeToByteArray()
val hash = sha256(input)

Download

The library can be found on Maven Central here.

Gradle

implementation("com.asyncant.crypto:sha256-kt:1.1")

Maven

<dependency>
    <groupId>com.asyncant.crypto</groupId>
    <artifactId>sha256-kt</artifactId>
    <version>1.1</version>
</dependency>

Contributing || Contact

For public matters, feel free to create issues or pull requests on the GitHub project.

For other matters, e.g. security issues, you can e-mail me at <project>@<github-username>.com.