Skip to content


Folders and files

Last commit message
Last commit date

Latest commit



18 Commits

Repository files navigation

MicroOTP - A Micropython One-Time Password Generator

Do you use OTPs ? OTPs are good! OTPs are a great way to protect your data from phishing and social engineering.

But what if you want to protect with a 2FA a mobile app? Do you see yourself the roundtrip? So MicroOTP comes in handy.

Also, how precious is the data you are going to access? Sometimes you need a place safe than a smartphone to store your One Time Passwords. Google Authenticator is a great tool, but if you really go in paranoid mode, the smartphone is itself insecure.

Project aim is to provide a banking grade security, long-lasting, OTP generators, that easy fit in your pocket, with schematics and everything you need to build it by yourself.

It comes with a client-side only implementation of RFC 4226 (HOTP: An HMAC-Based One-Time Password Algorithm) and RFC 6238 (TOTP: Time-Based One-Time Password Algorithm).

Quick features overview

  • Generate OTP tokens as Google Authenticator App and others would do
  • Compliant with SSH, Bitcoin exchanges, Google Apps, etc.
  • Handle multiple secrets and multiple tokens generation
  • Always ready, OTP in <1s


  • Ai-Thinker ESP12
  • SSD1306 I2C 128x64
  • DS3231 RTC

Build requirements

  • ESP12 with Micropython v1.8.7
  • adafruit-ampy
  • mpy-cross v1.8.7


  • Support Apps (Mobile, Desktop, Browsers)
  • Schematics
  • STL Files
  • Pocket sizing

microotp breadboard


No releases published


No packages published