Skip to content

Module cryptography-provider-webcrypto

Provides implementation of CryptographyProvider via WebCrypto

For supported targets and algorithms, please consult Supported primitives section

Limitations

  • only suspend functions are supported, because WebCrypto API is async by default
  • AES.* (browser only): may not support 192 bit keys
  • AES.CBC: only padding=true is supported

Example

val provider = CryptographyProvider.WebCrypto // or CryptographyProvider.Default

// get some algorithm
provider.get(SHA512)

Using in your projects

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

Package dev.whyoleg.cryptography.providers.webcrypto

Provides implementation of CryptographyProvider via WebCrypto