Skip to content

otplib API Documentation / @otplib/plugin-crypto-noble / crypto

Variable: crypto

const crypto: CryptoPlugin

Defined in: index.ts:88

Default singleton instance for convenience

Example

ts
import { crypto } from '@otplib/plugin-crypto-noble';

const hmac = crypto.hmac('sha1', key, data);

Released under the MIT License.