https://github.com/eddmann/pico-2fa-totp
Raspberry Pi Pico/MicroPython 2FA TOTP Generator
https://github.com/eddmann/pico-2fa-totp
Last synced: about 1 year ago
JSON representation
Raspberry Pi Pico/MicroPython 2FA TOTP Generator
- Host: GitHub
- URL: https://github.com/eddmann/pico-2fa-totp
- Owner: eddmann
- Created: 2021-10-15T16:30:30.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-17T15:54:06.000Z (over 4 years ago)
- Last Synced: 2025-03-24T17:49:35.597Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 19.4 MB
- Stars: 26
- Watchers: 2
- Forks: 13
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Raspberry Pi Pico/MicroPython 2FA TOTP Generator
Generates Time-based One-Time Password's (TOTP) using MicroPython, Raspberry Pi Pico and the [Pico Display Pack](https://shop.pimoroni.com/products/pico-display-pack).

## Features
- Complete [MicroPython implementation](totp) of the TOTP specification (and underlying HMAC-SHA1, Base32 dependencies).
- Customisable background colours per TOTP.
- Progress bar to present how long till the TOTP is about to expire.
- Flashing alert LED when the TOTP is about to expire.
- Initial configuration screen to set the current UTC time - to correct the Raspberry Pi Pico's RTC.
## Usage
- Connect the [Pico Display Pack](https://shop.pimoroni.com/products/pico-display-pack) 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](https://github.com/pimoroni/pimoroni-pico/releases/latest).
- Copy the codebase to the Raspberry Pi Pico.
- Upon boot, you will be required to specify the current UTC time (clicking `B` once set).
- Now you can cycle through your TOTP's using the `X` button.