This project is a Telegram bot for generating and storing passwords. The bot allows users to generate random passwords, store them securely, and view the history of created passwords.
- Generating random passwords of various lengths and complexities.
- Storing the last generated password and its creation date.
- Ability to view the history of created passwords.
- Encrypting passwords using a master key to ensure data security.
This project is implemented using the following technologies:
- Python 3.11
- aiogram - a framework for creating Telegram bots in Python.
- SQLite - for storing data about users and their passwords.
- cryptography - for encrypting passwords.
Before using the bot, you need to set the master password, which will be used to encrypt user password data. To do this, follow these steps:
- Open the
main.py
file in your code editor. - Find the line where the master password is defined, for example:
password = b'Password'
. - Replace the value of the
password
variable with your master password. For example:password = b'MyMasterPassword123'
. - Save the changes to the file.
Now the bot will use your master password to encrypt data, and you can start using it to generate and store passwords.
To run the bot, follow these steps:
- Install all dependencies by running
pip install -r requirements.txt
. - In the
connect.py
module, fill in the API_TOKEN obtained from @BotFather. - Start the bot by running
python main.py
.
This project was created as part of learning and can be further developed and extended to meet user needs. If you have any questions or suggestions for improving the project, feel free to contact! @m1_leu