VictorCPH / pwdsafety

🔒command line tool checking password safety🔒

Home Page:https://edoardoottavianelli.it

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


Command line tool that checks how much a password is safe
Coded with 💙 by edoardottt.

Mainteinance yes open issues version pr-welcome ask me anything
go-report-card workflows ubuntu-build
gobadge license-GPL3

This tool doesn't store any information!!

Remember, never use personal(or related to you) info in your password!

Get Started 🎉

  • Linux:

    • After downloaded the package and extracted inside go/ folder, for comfort, create the alias:

    • Edit the file /home/{REPLACE_USER}/.bashrc and append this row:

      alias pwdsafety="OLD=$(pwd) && cd YOUR-pwdsafety-PATH-FOLDER && go run main.go; cd $OLD; unset OLD"

    • Then just type pwdsafety in your terminal where you want and press enter.

  • Other OS(Windows,MacOS and so on...):

    • testing...
    • If you want to test it on these OS, let me know :)

Example 📊

Example

Description 🔦

It reads from standard input the entered password.

First, it searches in known-pwd.txt file if there is the password or the password reversed.

Then, just do little calculations, checking if the basic rules are respected, like if there are UPPERCASE CHARS, lowercase chars, numb3rs and symbols.

It stores the length of the password and the ratio [ unique different chars / total chars].

It calculates then the entropy of a password.

Password entropy is a measurement of how unpredictable a password is.

The formula for entropy is: CodeCogsEqn

Where E = password entropy

R = pool of unique characters

L = number of characters in your password

Then R^L = the number of possible passwords and the log of it is the number of bits of entropy.

When the score <= 68(reasonable) it generates a random password using a list of all english words.

Scoring 💯

Max score: 100

Scores:

  • Very weak: 0 - 35
  • Weak: 36 - 59
  • Reasonable: 60 - 68
  • Strong: 69 - 80
  • Very strong: 81 -100

Scoring parameters:

  • Found in known password
  • Found in known password reversed
  • Password composition:
    • numbers
    • symbols
    • uppercase
    • lowercase
  • Unique different characters
  • Length
  • Entropy

Download 📡

  • GIT command on CLI: git clone https://github.com/edoardottt/pwdsafety.git

  • Download by Browser: https://github.com/edoardottt/pwdsafety

  • WGET on Linux(Recommended on linux): wget https://github.com/edoardottt/pwdsafety/archive/master.zip

Contributing 🛠

Just open an issue/pull request.

See also CONTRIBUTING.md and CODE OF CONDUCT.md

If you liked it drop a ⭐

https://www.edoardoottavianelli.it for contact me.

                                                                        Edoardo Ottavianelli

About

🔒command line tool checking password safety🔒

https://edoardoottavianelli.it

License:GNU General Public License v3.0


Languages

Language:Go 98.3%Language:Makefile 1.7%