Check the password strength via OpenAI
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
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.
- 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