Skip to content

Raspberry Pi Pico/MicroPython 2FA TOTP Generator

Notifications You must be signed in to change notification settings

kleo/pico-2fa-totp

 
 

Repository files navigation

Raspberry Pi Pico/MicroPython 2FA TOTP Generator

Generates Time-based One-Time Password's (TOTP) using MicroPython, Raspberry Pi Pico and a 20x4 or 16x2 Character LCD.

Features

  • Complete MicroPython implementation of the TOTP specification (and underlying HMAC-SHA1, Base32 dependencies).
  • Countdown timer to present how long till the TOTP is about to expire.
  • Use WiFi network and NTP to set the current UTC time - to correct the Raspberry Pi Pico's RTC

Usage

  • Connect the Character LCD to the Raspberry Pi Pico.
  • Create a codes.json file (based on codes.json.example) which includes the desired TOTP keys.
  • Flash the Raspberry Pi Pico with the latest MicroPython with Pimoroni Libs.
  • Copy the codebase to the Raspberry Pi Pico.
  • Configure WiFi network SSID and password on synchronised_time.py.
  • Now you can cycle through your TOTP's using a button.

Acknowledgements

Forked from pico-2fa-totp created by Edd Mann.

RPI PICO I2C LCD scripts from RPI-PICO-I2C-LCD created by Tyler Peppy.

About

Raspberry Pi Pico/MicroPython 2FA TOTP Generator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.1%
  • Makefile 0.9%