stripedpajamas / pwncheck

Test if your user's password has been pwned using the haveibeenpwned.com API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pwncheck

tests if a given password has been pwned using the haveibeenpwned.com API.

inspired by the browser + node.js implementation here. see the why you should use this section from that repo for more info.

Usage

import (
  "fmt"
  "github.com/stripedpajamas/pwncheck"
)

func main() {
  pwned, err := pwncheck.Pwned("helloworld")
  if err != nil {
    // errors out if not able to hit API
  }
  fmt.Println(pwned) // true
}

License

MIT

About

Test if your user's password has been pwned using the haveibeenpwned.com API

License:MIT License


Languages

Language:Go 100.0%