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.3.0")
}

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.3.0")
}

Packages

Link copied to clipboard
common

Provides core primitives for creating and accessing CryptographyAlgorithm and CryptographyProvider

common

Provides common asymmetric encryption and signature algorithms, like RSA and ECDSA

common

Provides common digest algorithms, like SHA256 and SHA512

common

Provides common symmetric ciphers and MAC algorithms, like AES and HMAC

Link copied to clipboard
common

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

common

Provides API for encryption/decryption and Authenticated encryption/decryption

Link copied to clipboard
common

Provides hashing operation

common

Provides signature verification and generation API