Code Monkey home page Code Monkey logo

password-strength-checker's Introduction

Notes: The tool sends passwords to OpenAI in plain text. Using this tool carries the risk of exposing your password. Please be aware of the potential risks.

Password-Strength-Checker (psc)

Check the password strength via OpenAI

Follow up blog at Revolutionizing Password Strength Evaluation with OpenAI: A New Open Source Project โ€” PSC

Usage

Prepare your OpenAI API Key

Way 1 is, set environment variable

export OPENAI_API_KEY="<replace with your openai api key>"

Way 2 is, put the key to local .env

mv .env.sample .env

update the API key with yours

Run psc tool directly

Download the binary from release

Choice the suitable OS for your environment

uncompress and run it

# for example, from my macbook
$ wget https://github.com/AbacusGPT/Password-Strength-Checker/releases/download/v1.0.13/psc-1.0.13-darwin-amd64.tar.gz 

$ tar zxvf psc-1.0.13-darwin-amd64.tar.gz

$ mv psc-1.0.13-darwin-amd64 psc

$ ./psc --password 'Pass!234'
weak

$ ./psc --password '62sWJFk28gVnXK3u'
strong

Only for mac user, you need allow applications downloaded from "App Store and identified developers" in "Privacy & Security" setting.

image

build by yourself

  • Clone this repo
git clone https://github.com/AbacusGPT/Password-Strength-Checker
  • Prepare your OpenAI API Key

Way 1 is, set environment variable

export OPENAI_API_KEY="<replace with your openai api key>"

Way 2 is, put the key to local .env

mv .env.sample .env

update the API key with yours

  • run the build
go build -o psc .

You should see a binary file psc generated locally

  • run the test now
./psc --password 'Pass!234'
weak

$ ./psc --password '62sWJFk28gVnXK3u'
strong

run tests

$ go test
Password 'Pass!234', Run 1: Result - strong
Password 'Pass!234', Run 2: Result - weak
Password 'Pass!234', Run 3: Result - weak
Password 'Pass!234', Run 4: Result - weak
Password 'Pass!234', Run 5: Result - weak
Password 'Pass!234', Run 6: Result - strong
Password 'Pass!234', Run 7: Result - strong
Password 'Pass!234', Run 8: Result - weak
Password 'Pass!234', Run 9: Result - weak
Password 'Pass!234', Run 10: Result - weak
Password '62sWJFk28gVnXK3u', Run 1: Result - strong
Password '62sWJFk28gVnXK3u', Run 2: Result - weak
Password '62sWJFk28gVnXK3u', Run 3: Result - strong
Password '62sWJFk28gVnXK3u', Run 4: Result - strong
Password '62sWJFk28gVnXK3u', Run 5: Result - strong
Password '62sWJFk28gVnXK3u', Run 6: Result - strong
Password '62sWJFk28gVnXK3u', Run 7: Result - strong
Password '62sWJFk28gVnXK3u', Run 8: Result - strong
Password '62sWJFk28gVnXK3u', Run 9: Result - strong
Password '62sWJFk28gVnXK3u', Run 10: Result - strong
PASS
ok  	github.com/AbacusGPT/Password-Strength-Checker	13.619s

password-strength-checker's People

Contributors

ozbillwang avatar

Watchers

 avatar

Forkers

okstart1

password-strength-checker's Issues

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.