Skip to content

A Kotlin Multiplatform library for obtaining cryptographically secure random data.

License

Notifications You must be signed in to change notification settings

KotlinCrypto/random

Repository files navigation

random

badge-license badge-latest-release

badge-kotlin badge-error

badge-platform-android badge-platform-jvm badge-platform-js badge-platform-js-node badge-platform-wasm badge-platform-linux badge-platform-macos badge-platform-ios badge-platform-tvos badge-platform-watchos badge-platform-windows badge-support-android-native badge-support-apple-silicon badge-support-js-ir badge-support-linux-arm

A Kotlin Multiplatform library for procuring cryptographically secure random data.

The Linux/AndroidNative implementation was heavily inspired by rust-random/getrandom.

Modules

API Docs

Get Started

The best way to keep KotlinCrypto dependencies up to date is by using the version-catalog. Alternatively, see below.

// build.gradle.kts
dependencies {
    implementation("org.kotlincrypto.random:crypto-rand:0.4.0")
}