
Implements SHA-256 hashing with a minimal API to compute 32-byte digests from byte arrays; compact, lightweight, reference-derived, suitable for embedding.
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.
import com.asyncant.crypto.sha256
val input = "Hello world!".encodeToByteArray()
val hash = sha256(input)The library can be found on Maven Central here.
implementation("com.asyncant.crypto:sha256-kt:1.1")<dependency>
<groupId>com.asyncant.crypto</groupId>
<artifactId>sha256-kt</artifactId>
<version>1.1</version>
</dependency>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.
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.
import com.asyncant.crypto.sha256
val input = "Hello world!".encodeToByteArray()
val hash = sha256(input)The library can be found on Maven Central here.
implementation("com.asyncant.crypto:sha256-kt:1.1")<dependency>
<groupId>com.asyncant.crypto</groupId>
<artifactId>sha256-kt</artifactId>
<version>1.1</version>
</dependency>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.