otplib API Documentation / @otplib/plugin-crypto-node / crypto
Variable: crypto
constcrypto:CryptoPlugin
Defined in: index.ts:88
Default singleton instance for convenience
Example
ts
import { crypto } from '@otplib/plugin-crypto-node';
const hmac = crypto.hmac('sha1', key, data);