Git Product home page Git Product logo

raspberrypi-rc522-totp's Introduction

raspberrypi-rc522-totp

TOTP code generator for Raspberry Pi with secrets stored on rc522 RFID tag

The secrets are stored in PLAIN TEXT on your RFID tag!

Not under development anymore.

totpScreenshot

install your RC522 reader

This software is based on the library of a blog post. Install your reader as described there.

install dependencies

  • tkinter (window) sudo apt install python3-tk
  • pyotp (totp generator), notify2 (desktop notifications) and pyautogui (keyboard input) pip3 install pyotp notify2 pyautogui

write your secrets to the tag

Every application has its base32-encoded secret string. Use the Write.py from the example to write write your secrets to the tag: SECRET1.SECRET2. Use es many secrets as you want, they just have to fit on the card.

$ python3 Write.py 
Hello World!
New Data: XXXXXXXXXXXX.XXXXXXXXXXXX.
Now place your tag to write
Written

use it

Then download rc522-totp.py from this repo. Change the line names = ["GitHub", "Nextcloud"] and enter the names of the applications you used (in the right order). Then run it with python3 rc522-totp.py

Scan your tag and the codes wil appear. If you click on a code, the program will enter it on your keyboard after 1 second. While this second you can focus the input box where you have to type the code. On Raspberry Pi OS (LXDE), notifications won't work. (I'm using Cinnamon on my Pi 4).

You can create a menu item to find it easily.

raspberrypi-rc522-totp's People

Contributors

s12wu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.