Skip to content
This repository has been archived by the owner on Apr 24, 2021. It is now read-only.

BeastImran/password-generator-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PASSWORD GENERATOR TELEGRAM BOT

This bot will help you generate some random, strong passwords and passphrases as your requested length.

This mini-project was started by me as a fun project but it gained over 250+ users and 3.8 / 5 score in BotsArchive channel. So I am continuing to improve it furthur. Please ping me in telegram @BeastImran if you want to use this code or files in your project in anyway or need to query something or you want to involve in this project in any manner.

NO LONGER MAINTAINED.

Prerequisite

You will need to have python3 language and aiogram and cryptography libraries or APIs installed.

You can install aiogram and cryptography libraries using pip.

  pip install aiogram cryptography

Installation and running

The installation is straight forward.

  1. Download and satisfy the prerequisite.

  2. Download this repository.

  3. Get a BOT API KEY from BOT FATHER in telegram.

  4. If you have a BOT API KEY you can replace text "BOT_API_KEY" with your valid key in main.py file.

  5. Open a terminal in the downloaded directory and type the following command.

  python main.py
  1. The bot should be up and running by now if everything is done right.

How to use this bot in telegram

Start a chat with this bot

/start : to see the welcome message.

/gen : to generate a 32 chatacter length password.

/gen num : to generate a num character length password.

example:

/gen 8 /gen 10 /gen 16 /gen 64

🔑 passwords generated using /gen command are very strong 💪 but are not easy to remember. You should have some amount of guts to remember such passwords. It's better if you use a pass phrase if you want to remember. A pass phrase is a kind of password which is a combination of several n different words like as shown bellow.

pass-phrase: absentee afternoon plus repackage long

/phrase : to generate 8 words length pass-phrase

/phrase num : to generate a pass phrase with num words

example:

/phrase 4 /phrase 8 /phrase 12 /phrase 20

SMALL FEATURES:

/save: to save any notes or passwords

note: all the saved notes are encrypted and no one without a valid decryption key can read the notes. keys are unique to each user. read more about it on my github page. try /dev

example:

/save I need to meet a friend @12:30 pm today!

/save My amazon pass is AmAsOnPaSz


/get: to retrive or get all saved notes

OTHER COMMANDS:

/stat: to see your statistics

/gstat: to see global statistics

/dev: to see info about this bot's developer