Chococoin / EmojiPasswordGenerator

A password generator that may use emojis as charset ๐Ÿ˜

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Password Generator

Simple but funny and flexible password generator.


###Features:

#####Password generation:

  • It allows you to specify the character set:
    • by enabling/disabling character classes:
      • emojis (Using this charset: ๐Ÿ˜€๐Ÿคฃ๐Ÿค‘๐Ÿ˜๐Ÿฅต๐Ÿฅถ๐Ÿคฎ๐Ÿคฏ๐Ÿ˜ท๐Ÿ‘ป๐Ÿ‘พ๐Ÿค–๐Ÿต๐Ÿ™ˆ๐Ÿ™‰๐Ÿ™Š๐Ÿ•๐ŸฆŠ ๐Ÿข๐Ÿธ๐Ÿฆˆ๐Ÿณ๐ŸŒž๐ŸŒˆ๐Ÿ’๐Ÿ‹๐Ÿฅ๐Ÿ‰๐ŸŒ๐Ÿ‡๐Ÿฉ๐Ÿฅจ๐Ÿง๐Ÿฅš๐Ÿบ๐Ÿฌ ๐Ÿซ๐Ÿฏ๐ŸŒญ๐ŸŒฎ๐Ÿ”๐Ÿฅ“๐Ÿ•๐Ÿช๐Ÿ›นโšฝ๐Ÿ€๐Ÿˆ๐ŸŽณ๐Ÿ“๐ŸŽฑ๐ŸŽธ๐ŸŽจ๐Ÿฅ‹ ๐ŸŽฎ๐ŸŽฒ๐Ÿ‡๐Ÿ„๐Ÿฅ‘๐Ÿ…๐ŸŽ‰๐Ÿ”ฅ๐Ÿ’ˆ๐Ÿ’ฃโฐ๐ŸŽˆ๐Ÿงธ๐Ÿ’พ๐Ÿ’ก๐Ÿ“ท๐Ÿ”’๐Ÿ’Ž)
      • uppercase ASCII letters A-Z
      • lowercase ASCII letters a-z
      • digits 0-9
      • punctuation !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
      • space
    • by adding custom characters
    • by blacklisting custom characters
  • It allows you to specify any desired length of the password.
  • It allows you to limit the maximum allowed number of occurrences of the same character, but still takes care that the password length can be reached.

#####Usage

  • ######Interactive mode:

    Run the script without any arguments and you get to the interactive mode which looks like this example:

    $ ./pwgen.py
    ***** Password Generator - ยฉ 2016 ByteCommander *****
    
    The default character set to generate passwords is this (not including the arrows):
    โ†’ !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~โฐโšฝ๐ŸŒˆ๐ŸŒž๐ŸŒญ๐ŸŒฎ๐Ÿ„๐Ÿ…๐Ÿ‡๐Ÿ‰๐Ÿ‹๐ŸŒ๐Ÿ’๐Ÿ”๐Ÿ•๐Ÿฉ๐Ÿช๐Ÿซ๐Ÿฌ๐Ÿฏ๐Ÿบ๐ŸŽˆ๐ŸŽ‰๐ŸŽจ๐ŸŽฎ๐ŸŽฑ๐ŸŽฒ๐ŸŽณ๐ŸŽธ๐Ÿ€๐Ÿ‡๐Ÿˆ๐Ÿ“๐Ÿ•๐Ÿข๐Ÿณ๐Ÿต๐Ÿธ๐Ÿ‘ป๐Ÿ‘พ๐Ÿ’ˆ๐Ÿ’Ž๐Ÿ’ก๐Ÿ’ฃ๐Ÿ’พ๐Ÿ“ท๐Ÿ”’๐Ÿ”ฅ๐Ÿ˜€๐Ÿ˜๐Ÿ˜ท๐Ÿ™ˆ๐Ÿ™‰๐Ÿ™Š๐Ÿ›น๐Ÿค‘๐Ÿค–๐Ÿคฃ๐Ÿคฎ๐Ÿคฏ๐Ÿฅ‹๐Ÿฅ‘๐Ÿฅ“๐Ÿฅš๐Ÿฅ๐Ÿฅจ๐Ÿฅต๐Ÿฅถ๐Ÿฆˆ๐ŸฆŠ๐Ÿง๐Ÿงธโ† 
    Do you want to change the character set? (y/N) y
    Do you want to allow emoji characters '๐Ÿ˜€๐Ÿคฃ๐Ÿค‘๐Ÿ˜๐Ÿฅต๐Ÿฅถ๐Ÿคฎ๐Ÿคฏ๐Ÿ˜ท๐Ÿ‘ป๐Ÿ‘พ๐Ÿค–๐Ÿต๐Ÿ™ˆ๐Ÿ™‰๐Ÿ™Š๐Ÿ•๐ŸฆŠ๐Ÿข๐Ÿธ๐Ÿฆˆ๐Ÿณ๐ŸŒž๐ŸŒˆ๐Ÿ’๐Ÿ‹๐Ÿฅ๐Ÿ‰๐ŸŒ๐Ÿ‡๐Ÿฉ๐Ÿฅจ๐Ÿง๐Ÿฅš๐Ÿบ๐Ÿฌ๐Ÿซ๐Ÿฏ๐ŸŒญ๐ŸŒฎ๐Ÿ”๐Ÿฅ“๐Ÿ•๐Ÿช๐Ÿ›นโšฝ๐Ÿ€๐Ÿˆ๐ŸŽณ๐Ÿ“๐ŸŽฑ๐ŸŽธ๐ŸŽจ๐Ÿฅ‹๐ŸŽฎ๐ŸŽฒ๐Ÿ‡๐Ÿ„๐Ÿฅ‘๐Ÿ…๐ŸŽ‰๐Ÿ”ฅ๐Ÿ’ˆ๐Ÿ’ฃโฐ๐ŸŽˆ๐Ÿงธ๐Ÿ’พ๐Ÿ’ก๐Ÿ“ท๐Ÿ”’๐Ÿ’Ž'? (Y/n) y
    Do you want to allow uppercase letters 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'? (Y/n) y
    Do you want to allow lowercase letters 'abcdefghijklmnopqrstuvwxyz'? (Y/n) y
    Do you want to allow digits '0123456789'? (Y/n) y
    Do you want to allow punctuation '!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~'? (Y/n) n
    Do you want to allow space ' '? (Y/n) n
    Please enter additional characters you want to allow (if any): -_
    Please enter characters you want to blacklist (if any): Xx0๐ŸŒ๐Ÿ’ฃ
    The default password length is 12 characters.
    Enter your desired length or leave it blank to use the default: 20
    By default, there is no limit how often a character may appear in the password.
    Enter your desired maximum duplicate character limit or leave it blank to use the default.
    A value of 0 means no limit: 1
    And your new password is:
    +----------------------+
    | jJ-USo๐ŸซDig7๐Ÿค–3eO2๐ŸฆŠREd |
    +----------------------+
    Generate another password with the same settings? (Y/n)
    And your new password is:
    +----------------------+
    | VZC๐Ÿ˜€KuQFI๐ŸขHjqSB๐Ÿ’gN9M |
    +----------------------+
    Generate another password with the same settings? (Y/n) n
    Thank you for using this password generator. Have a nice day!
    
  • ######Command-line mode:

    Run the script with the command-line arguments described in its help (type pwgen.py --help or pwgen.py -h or see the block below) and you use it in command-line mode. This is useful to embed this tool into your own scripts, create your personal shortcuts for it or quickly launch it with a specific configuration.

    Help screen:

    $ ./pwgen.py -h
    usage: pwgen.py [-h] [-n AMOUNT] [-m LIMIT] [-e] [-q] [-u] [-l] [-d] [-p] [-s]
                    [-a ADDITIONAL] [-b BLACKLIST]
                    length
    
    usage: Highly customizable random password generator.
    ๐Ÿค– Try the emoji mode to generate random emoji-passwords ๐ŸŒˆ.
    
    positional arguments:
      length                length of the password to generate
    
    optional arguments:
      -h, --help            show this help message and exit
      -n AMOUNT, --amount AMOUNT
                            how many passwords to create
      -m LIMIT, --max-duplicate-chars LIMIT
                            limits how often the same character may occur in a
                            password at most
      -e, --emoji           Use the emoji mode to generate passwords with emojis ๐Ÿ˜
      -q, --quiet           print only one password per line, nothing else
    
    Character set specification:
      -u, --uppercase       include uppercase letters A-Z into the available
                            character set
      -l, --lowercase       include lowercase letters a-z into the available
                            character set
      -d, --digits          include digits 0-9 into the available character set
      -p, --punctuation     include punctuation into the available character set
      -s, --space           include the standard space into the available
                            character set
      -a ADDITIONAL, --additional ADDITIONAL
                            additional characters to include into the available
                            character set
      -b BLACKLIST, --blacklist BLACKLIST
                            characters to exclude from the available character set
    
    Run it without any arguments for interactive mode.
    

    Example run:

    $ ./pwgen.py 10 -ulde -a'-_' -n6
    .----------------------------------------.
    | ๐ŸŒˆ๐Ÿ’ช๐Ÿ˜ท Emoji Password Generator ๐Ÿ‡ฎ๐Ÿ‡น๐Ÿ’—๐Ÿ‡ป๐Ÿ‡ช |
    | ๐Ÿ„ฏ 2020 Chococoin Powered by Ethturin   |
    *----------------------------------------*
    
    Using this character set (excluding the arrows):
    โ†’-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyzโฐโšฝ๐ŸŒˆ๐ŸŒž๐ŸŒญ๐ŸŒฎ๐Ÿ„๐Ÿ…๐Ÿ‡๐Ÿ‰๐Ÿ‹๐ŸŒ๐Ÿ’๐Ÿ”๐Ÿ•๐Ÿฉ๐Ÿช๐Ÿซ๐Ÿฌ๐Ÿฏ๐Ÿบ๐ŸŽˆ๐ŸŽ‰๐ŸŽจ๐ŸŽฎ๐ŸŽฑ๐ŸŽฒ๐ŸŽณ๐ŸŽธ๐Ÿ€๐Ÿ‡๐Ÿˆ๐Ÿ“๐Ÿ•๐Ÿข๐Ÿณ๐Ÿต๐Ÿธ๐Ÿ‘ป๐Ÿ‘พ๐Ÿ’ˆ๐Ÿ’Ž๐Ÿ’ก๐Ÿ’ฃ๐Ÿ’พ๐Ÿ“ท๐Ÿ”’๐Ÿ”ฅ๐Ÿ˜€๐Ÿ˜๐Ÿ˜ท๐Ÿ™ˆ๐Ÿ™‰๐Ÿ™Š๐Ÿ›น๐Ÿค‘๐Ÿค–๐Ÿคฃ๐Ÿคฎ๐Ÿคฏ๐Ÿฅ‹๐Ÿฅ‘๐Ÿฅ“๐Ÿฅš๐Ÿฅ๐Ÿฅจ๐Ÿฅต๐Ÿฅถ๐Ÿฆˆ๐ŸฆŠ๐Ÿง๐Ÿงธโ†
    There are no duplicate character limits.
    
    Generating 6 passwords of length 10:
    
    ๐ŸขX6๐Ÿ™‰๐ŸคฏV3H๐Ÿ„f
    U๐Ÿ‘พFA๐Ÿฅ‘8kF8p
    ๐Ÿ’ŽO5Z๐ŸŽˆiAb๐Ÿ”’๐Ÿ‘พ
    0๐ŸŽฎhLU๐Ÿ™Šq๐Ÿ’Ž๐Ÿ™‰๐Ÿฅจ
    g๐ŸŽฒ๐Ÿ„e๐ŸธM๐ŸคฃโšฝI๐Ÿฅจ
    gcH๐Ÿ€๐Ÿ’พ๐Ÿ˜ทatv๐ŸŒญ
    

    A Project inspired by Password Generator ยฉ 2016 of ByteCommander [https://github.com/ByteCommander/PasswordGenerator]

About

A password generator that may use emojis as charset ๐Ÿ˜

License:Other


Languages

Language:Python 100.0%