cryptography-core
Provides multiplatform API to build, get and use cryptography primitives
Core entities:
CryptographyProvider provides a way to get specific CryptographyAlgorithm by its id
CryptographyProvider.Default is the default provider which is just a link to the first registered provider. After adding dependency to provider (like openssl3) it will be automatically registered as default
inheritors of CryptographyAlgorithm (like f.e. AES) provides access to operations (like f.e. cipher)
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")
}
Provides multiplatform API to build, get and use cryptography primitives
Core entities:
CryptographyProvider provides a way to get specific CryptographyAlgorithm by its id
CryptographyProvider.Default is the default provider which is just a link to the first registered provider. After adding dependency to provider (like openssl3) it will be automatically registered as default
inheritors of CryptographyAlgorithm (like f.e. AES) provides access to operations (like f.e. cipher)
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")
}
Packages
Provides core primitives for creating and accessing CryptographyAlgorithm and CryptographyProvider
Provides API for working with keys: encoding, decoding and generation