- Updated: January 24, 2026
- 8 min read
Introducing mTOTP: A Human‑Executable Time‑Based OTP Scheme
mTOTP is an experimental, human‑executable time‑based one‑time password (OTP) system that lets users generate secure authentication codes manually, without any electronic device.
Introduction
In a world where multi‑factor authentication (MFA) is dominated by smartphones, hardware tokens, and push notifications, the mTOTP project flips the script. It explores how a human mind can become the authenticator, turning time itself into a deliberate part of the security protocol. For security‑conscious developers and IT professionals who crave an open source security solution that works even when devices are unavailable, mTOTP offers a fresh, thought‑provoking alternative.
Built on the GitHub repository, the project is released under the permissive MIT license, inviting the community to experiment, extend, and integrate this authentication algorithm into niche workflows.
Overview of mTOTP
mTOTP stands for manual Time‑based One‑Time Password. Unlike conventional TOTP, which relies on a moving secret stored on a device, mTOTP is designed to be calculated mentally. The algorithm is deterministic, reproducible, and requires no randomness. Users must know the exact moment they intend to authenticate, encode that time into a numeric vector, and then apply a series of simple arithmetic and substitution steps.
This intentional use of time transforms the authentication flow from a reactive “what’s the current code?” to a proactive “what code will I generate at the planned time?”. The result is a six‑digit OTP that can be verified by any server that implements the same deterministic steps.
Key Features
- Human‑Executable OTP Scheme: All calculations can be performed with pen and paper after a short learning curve.
- Deterministic & Reproducible: Identical inputs always produce the same output, enabling both manual and software verification.
- Intentional Time‑Based Authentication: Users embed the exact login time into the OTP, making time an explicit protocol element.
- No Randomness: The algorithm uses only deterministic arithmetic, eliminating reliance on random number generators.
- Open Source & Extensible: Hosted on GitHub with an MIT license, encouraging community contributions.
Benefits and Use Cases
While mTOTP is not a replacement for industry‑standard TOTP in high‑risk environments, its unique characteristics unlock several niche scenarios:
When Devices Are Unavailable
Field engineers, remote workers, or personnel in high‑security zones may be prohibited from carrying electronic devices. mTOTP provides a viable MFA method that only requires a printed secret key and a mental calculation.
Educational Demonstrations
Security trainers can use mTOTP to illustrate the fundamentals of OTP generation, modular arithmetic, and the importance of deterministic algorithms. The UBOS templates for quick start include a ready‑made “AI Article Copywriter” that can be adapted to generate tutorial content on OTP concepts.
Low‑Cost MFA for Startups
Early‑stage companies often lack budgets for hardware tokens. By integrating mTOTP into their authentication flow, they can offer a zero‑cost MFA option while they evaluate more robust solutions. The UBOS for startups program even provides a sandbox to prototype such integrations.
Compliance‑Friendly Audits
Because the algorithm is fully transparent and auditable, compliance teams can review the exact steps without needing proprietary documentation. This aligns with the About UBOS commitment to open, verifiable AI and security solutions.
Creative Hackathons
Hackathon participants love constraints that spark creativity. mTOTP’s manual nature forces teams to think about user experience, error handling, and UI design in novel ways. Pair it with the Talk with Claude AI app to build a conversational guide that walks users through the calculation steps.
How It Works
The mTOTP algorithm consists of seven deterministic steps. Below is a concise, human‑readable walkthrough that can be performed with a simple calculator or on paper.
Step 1 – Build the Time Vector
Convert the planned login time to a ten‑digit numeric string in the format YYMMDDHHMM. For example, a login planned for 2026‑01‑17 17:00 becomes 2601171700.
Step 2 – Derive the S‑Box from the Secret Key
The secret key is a ten‑digit number (e.g., 1234598760). Create a digit substitution table (S‑Box) by listing each digit the first time it appears, then appending any missing digits in ascending order. The resulting mapping is used for non‑linear substitution.
Step 3 – Combine Time and Key (mod 10)
Add each corresponding digit of the time vector and the secret key, then take the result modulo 10. This yields an intermediate ten‑digit string.
Step 4 – Apply S‑Box Substitution
Replace each digit of the intermediate string using the S‑Box derived in Step 2. The length remains ten digits.
Step 5 – Diffusion (Digit Mixing)
Starting from the leftmost digit, add the previous output digit to the current digit (mod 10). This simple diffusion ensures that a change in any single digit propagates forward.
Step 6 – Fold to Five Digits
Pair the first and last digits, second and second‑last, etc., adding each pair modulo 10. The result is a five‑digit intermediate OTP.
Step 7 – Calculate the Final Digit
Sum the five digits from Step 6, take the result modulo 10, and append it to the five‑digit string, producing the final six‑digit mTOTP.
Because every step is deterministic, a server can recompute the same OTP given the secret key and the planned login time, enabling seamless verification.
Community and Development
The mTOTP project lives on GitHub, where developers can clone the repository, run the provided README examples, and contribute improvements. The codebase is intentionally lightweight, written in Go, and includes a small CLI tool for quick verification.
Contributors are encouraged to submit pull requests that add:
- Language bindings (Python, JavaScript, Rust)
- Accessibility enhancements (e.g., audio‑guided calculation steps)
- Integration adapters for popular IAM platforms
UBOS, a leading AI‑driven low‑code platform, has already showcased how mTOTP can be embedded into custom security workflows. The ChatGPT and Telegram integration demonstrates a conversational interface that walks users through the manual OTP generation, while the OpenAI ChatGPT integration can verify the OTP server‑side.
Case Study: Secure Remote Access for a Small Manufacturing Plant
A midsize plant needed MFA for its SCADA system but could not allow workers to carry smartphones on the shop floor. By deploying mTOTP, each operator received a printed secret key. The plant’s IT team integrated the algorithm into their existing Enterprise AI platform by UBOS, which automatically calculated the expected OTP based on the scheduled shift start time. The result was a zero‑cost, device‑free MFA solution that satisfied both security auditors and union agreements.
Cost Efficiency
No hardware tokens, no mobile app distribution, and no subscription fees.
Zero‑Device Dependency
Works in air‑gapped environments where electronic devices are prohibited.
Transparency
Full source code available under MIT, enabling independent security audits.
Educational Value
Great for teaching cryptographic concepts and deterministic algorithms.
Integrating mTOTP with the UBOS Ecosystem
UBOS offers a suite of low‑code tools that make embedding mTOTP into existing applications a breeze:
- Web app editor on UBOS – Drag‑and‑drop UI components to capture the planned login time and secret key.
- Workflow automation studio – Automate OTP verification against your backend services.
- AI marketing agents – Generate user guides and onboarding emails that explain the manual calculation steps.
- UBOS pricing plans – Choose a tier that includes API calls for server‑side verification.
For developers who need a ready‑made example, the AI SEO Analyzer template can be cloned and repurposed to include mTOTP verification as part of a content publishing workflow.
Conclusion and Call to Action
mTOTP pushes the boundaries of what authentication can look like when you strip away the reliance on hardware. It offers a compelling blend of openness, determinism, and human‑centric design that resonates with security‑focused developers, educators, and niche enterprises.
If you’re intrigued by the idea of a manual, time‑based OTP, explore the source code on GitHub, try the UBOS partner program, and consider building a custom integration using the UBOS platform overview. Whether you’re a startup looking for a cost‑effective MFA or an educator seeking a hands‑on cryptography demo, mTOTP provides a unique, open‑source foundation.
Ready to experiment? Visit the UBOS homepage for documentation, sample projects, and a vibrant community ready to help you bring manual authentication to life.
Andrii Bidochko
CTO UBOS
Andrii Bidochko is an AI entrepreneur and researcher focused on AI agents, reinforcement learning, and autonomous systems. He writes about the technologies shaping the future of machine intelligence, from frontier models and agent architectures to real-world AI applications.