diff --git a/README.md b/README.md index dec1934..5a932f0 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,22 @@ # Simple-TOTP -Simple TOTP Program using Python. + +This repository contains the code for a simple Time-based One-Time Password (TOTP) generator. + +## Usage + +1. Install the required dependencies by running `pip install pyotp`. +2. Add secret and password in `secret key` `password here` +3. Run the `main.py` script to generate a TOTP. + +## Build to exe + +1. Install pyinstaller by running `pip install pyinstaller` +2. Build by running `pyinstaller main.py --onefile --noconsole` + +## License + +This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more information. + +## Acknowledgements + +Special thanks to the developers of [pyotp](https://github.com/pyotp/pyotp) for providing the library used in this project. \ No newline at end of file diff --git a/main.py b/main.py index 9727275..0b1be1c 100644 --- a/main.py +++ b/main.py @@ -3,11 +3,11 @@ import os import tkinter as tk -totp = pyotp.TOTP("") +totp = pyotp.TOTP("secret key") def check_password(): password = password_entry.get() - if password == "": + if password == "password here": def update_totp(): current_totp = totp.now() totp_label.config(text="Current TOTP: \n" + current_totp) # Update the label with current TOTP