pyBegin / projects / otp-generator
🔑

OTP Generator

Generates one-time passwords (OTPs) of a given length. The Otp class can produce OTPs made of digits only, digits with uppercase letters, digits wi…

73 linesRunnable

OTP Generator

Generates one-time passwords (OTPs) of a given length. The Otp class can produce OTPs made of digits only, digits with uppercase letters, digits with lowercase letters, or all three combined.

How to run

python otpGen.py

Dependencies

Standard library only (random).

Pyodide-runnable

Yes — it is a pure-stdlib program that simply prints a generated OTP.