Code Monkey home page Code Monkey logo

telegram-xkcd-password-generator's Introduction

Readable Passwords Generator for Telegram

This bot allows you to generate readable passwords directly from Telegram without necessity to open external utilities such as KeePass. An inspiration for this bot came from famous XKCD 936 strip.
Try it now: https://t.me/passgenbot

Features

  • Presets of different complexity;
  • Ability to generate customized password;
  • Inline mode with colored complexity;
  • No personal data is collected!
  • Basic multilanguage support (En+Ru), depending on language_code from Bot API;
  • Docker support

Requirements

You can install all these requirements with pip install -r requirements.txt command. Redis must be done separately (or will be automatically pulled if using Docker method below)

Presets

Presets

  • /generate_weak – 2 words, no digits or separators between words
  • /generate_normal – 3 words, random UPPERCASE, separated by numbers
  • /generate_strong – 4 words, random UPPERCASE, separated by numbers or special characters

Customized Passwords

Customized Passwords

With /settings command you can customize generated passwords. Currently supported settings are number of words (2 to 8), prefixes and suffices in the beginning and in the end of password and separators between words in password. Then just use /generate command to create password based on your settings.

Inline mode

Inline mode

You can also use this bot in inline mode. An indicator on the left shows rough password complexity (green is good, red is not).

Docker

This bot supports deployment via docker-compose. First create a directory structure for your bot, e.g.:

mkdir -p /opt/passgenbot/{bot-config,redis-config,redis-data}
touch /opt/passgenbot/bot-config/config.ini

bot-config directory contains config.ini file.
redis-config directory contains custom config file for Redis. If you don't place anything here, the following config will be used:

port 6379
save 600 1
dbfilename redis_dump.rdb

redis-data directory contains your database file. You can place your own one if migrating from other bot's instance. Don't forget to update redis.conf file if you rename or move your database file.

Use config.example.ini as an example for your own configuration file, then place docker-compose.yml file next to other created directories and start your bot using docker-compose up -d command. Check logs using docker-compose logs.

telegram-xkcd-password-generator's People

Contributors

mastergroosha avatar ypankovych avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

telegram-xkcd-password-generator's Issues

Separators between words are always the same

When I generate a password with the command /generate (Separators between words: Yes) or /generate_insane, the symbols between words are the same every time.
Some examples of passwords I just generated:

?defeatism$CHARRED$seize^
*distant:LOCALITY:eight^
-AIRLINER:VIRTUOSITY:TORNADO^

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.