This program uses the HaveIBeenPwned password api to check if the password given has been leaked in any data breaches that they are aware of.
It's really interesting how the api works, allowing you to check your password without giving it to anyone.
I wrote a bunch of different versions of this program in python, so when I wanted something to just play around with in Go, I decided to rewrite it. It really is basically the same program in either language, just slightly different syntax. But Go is my favorite lately, so why not rewrite it?
Make sure your go environment is set up, then run:
$ go install github.com/unclassedpenguin/passwordcheck@latest
Then just run it using $ passwordcheck
.
If you don't understand the source code enough to know whats going on, I wouldn't trust any program written by some random on the internet who asks for your password. :p