ftq-qrng v1.0.13
QRNG - Quantum Random Number Generator
The utilization of Quantum Random Number Generator (QRNG) technology has the potential to transform various industries by providing an unparalleled level of security for transactions and data. QRNG employs photon detectors to generate random numbers, making it impossible to tamper with, as the outcome of any measurement of a quantum system is unpredictable. This unpredictability can be harnessed to produce genuinely random numbers.
QRNGs find crucial applications in areas such as cryptography, where genuinely random numbers are indispensable for safeguarding communication and encrypting data. Additionally, they are used in scientific research, simulations, and other sectors like banking, which necessitate the use of truly random numbers.
Installation
import qrng from "ql-qrng";
Features
To create OTP using QRNG
const { key } = await qrng.createNewOTP(5, 6, token); // qrng.createNewOTP(time-in-minutes, otp-length);
const isVerified = await qrng.verifyOTP(otp, key);
To send email and verify
const { key } = await qrng.sendEmail(emailTo, subject, 5, 6, token); // qrng.sendEmail(emailTo, subject ,time-in-minutes, otp-length);
const isVerified = await qrng.verifyOTP('OTP Code which you received in email', key);
To send SMS and verify
const { key } = await qrng.sendSMS(to_number, 5, 6, token); // qrng.sendSMS(to_number ,time-in-minutes, otp-length);
const isVerified = await qrng.verifyOTP('OTP Code which you received in mobile', key);
Happy Coding :)