Skip to content

otplib API Documentation / @otplib/core / createCryptoContext

Function: createCryptoContext()

createCryptoContext(crypto): CryptoContext

Defined in: packages/core/src/crypto-context.ts:91

Create a CryptoContext from a crypto plugin

Parameters

crypto

CryptoPlugin

The crypto plugin to use

Returns

CryptoContext

A new CryptoContext instance

Released under the MIT License.