Skip to content

Calculate OATH-TOTP One-Time Passwords (OTP) on an ESP32-C3

License

Notifications You must be signed in to change notification settings

0xjakob/esp-unlock

Repository files navigation

ESP-Unlock Software

This application for an ESP32-C3 calculates One-Time Passwords (OTP) on request. It implements the OATH-TOTP protocol using SHA1 and a six digit code.

Requirements

You need the ESP-IDF version 5.1 and ESP-IDF-C++ version 1.0.1-beta (set automatically for ESP-IDF-C++). The required versions may change in the future. For more information on setting up ESP-IDF's requirements, visit the Get Started page of the ESP-IDF Programming Guide.

Build

After setting up and exporting the ESP-IDF toolchain, run:

idf.py build

Note that an internet connection is needed for the component manager while building.

Run

This application is meant to be run on an ESP32-C3 and communicating via its USB-serial interface. But in principle, any other serial connection can be used, too. Use menuconfig and go to Component config → ESP System Settings → Channel for console output to change the serial connection. If you chose the default UART, you should be able to use any ESP-series development board.

About

Calculate OATH-TOTP One-Time Passwords (OTP) on an ESP32-C3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published