Skip to content

Module cryptography-core

Provides multiplatform API to build, get and use cryptography primitives

Core entities:

Example

CryptographyProvider.Default
    .get(SHA512)
    .hasher()
    .hash("Kotlin is Awesome".encodeToByteArray())

Using in your projects

dependencies {
    implementation("dev.whyoleg.cryptography:cryptography-core:0.4.0")
}

Package dev.whyoleg.cryptography

Provides core primitives for creating and accessing CryptographyAlgorithm and CryptographyProvider

Package dev.whyoleg.cryptography.algorithms

Provides common algorithms:

Package dev.whyoleg.cryptography.operations

Provides APIs to perform cryptography operations:

Package dev.whyoleg.cryptography.materials.key

Provides API for working with keys: encoding, decoding and generation