A secure, client-side Time-based One-Time Password (TOTP) generator built with Next.js, Tailwind CSS, and a premium Glassmorphism design. Inspired by totp.danhersam.com but reimagined with a modern "wow" factor.
- 🔐 Secure: All generation happens client-side. No keys are ever sent to a server.
- 🌍 Localization: Support for English (EN), Russian (RU), and Chinese (CN).
- 🎨 Premium UI: Dark mode, glassmorphism, and smooth animations.
- 🔗 URL Support: Pre-fill settings via URL parameters (
?key=...,?digits=...,?period=...). - ⚡ Offline Ready: Works entirely in the browser.
- Node.js 18+
- npm or pnpm
- Clone the repository:
git clone https://github.com/dev-Yashwant/totp-generator.git
- Install dependencies:
npm install
- Run the development server:
npm run dev
- Open http://localhost:3000 with your browser.
You can configure the generator using URL query parameters:
key(orsecret): The Base32 secret key.digits(orl): Number of digits (default: 6).period: Time period in seconds (default: 30).
Example:
http://localhost:3000/?key=JBSWY3DPEHPK3PXP&digits=6
- Prompted by dev-yash using Anti Gravity.
- Icons by Lucide React.
- TOTP logic by
otpauth.
MIT