Is your password safe? This is a Golang fork of Safe
go get github.com/holys/safe
import "github.com/holys/safe"
s := safe.New(8, 0, 3, safe.Strong)
s.SetWords("/path/to/words")
s.Check("password")
$ go test -bench .
PASS
BenchmarkIsAsdf-4 5000000 290 ns/op
BenchmarkIsByStep-4 20000000 74.4 ns/op
BenchmarkIsCommonPassword-4 100000000 21.2 ns/op
BenchmarkReverse-4 3000000 484 ns/op
BenchmarkCheck-4 500000 2379 ns/op
ok github.com/holys/safe 8.670s
MIT