If no provider has been explicitly set, this function returns a default
WebCryptoProvider instance. The provider is cached globally for performance
and consistency across the library.
// Get the current provider constprovider = getCryptoProvider()
// Use it for cryptographic operations consthash = awaitprovider.digest(data, 'SHA-256') constsignature = awaitprovider.sign(data, privateKey, algorithm)
Gets the current global cryptographic provider.
If no provider has been explicitly set, this function returns a default WebCryptoProvider instance. The provider is cached globally for performance and consistency across the library.