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