WebCrypto¶
Provides implementation of CryptographyProvider via WebCrypto
For supported targets and algorithms, please consult Supported primitives section
Limitations¶
- only
suspendfunctions are supported, becauseWebCryptoAPI is async by default - AES.* (browser only): may not support
192 bitkeys - AES.CBC: only
padding=trueis 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.5.0")
}