UNPKG

keygentoolshed

Version:

Key generation utilities for cryptographic operations. QUANTUM ENCRYPTION FOLDER UPDATE!!! See its folder for all <3

10 lines (9 loc) 218 B
function generateOTP(length) { let otp = ''; for (let i = 0; i < length; i++) { otp += Math.floor(Math.random() * 10); } return otp; } const otp = generateOTP(6) console.log('Generated OTP', otp);