Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/god_crypto/otp.ts>TOTP.generateSecret

Pure Javascript/Typescript Crypto Implementation for Deno. AES, RSA, HMAC, and TOTP
Very Popular
Latest
method TOTP.generateSecret
import { TOTP } from "https://deno.land/x/god_crypto@v1.4.11/otp.ts";

Parameters

numberOfByte: number

Number of bytes used to generate the random key