/safe

Is your password safe?

Primary LanguageGoMIT LicenseMIT

Build Status Coverage Status GoDoc

Safe

Is your password safe? This is a Golang fork of Safe

How it works?

link

Installation

go get github.com/holys/safe

Usage

import  "github.com/holys/safe"

s := safe.New(8, 0, 3, safe.Strong)
s.SetWords("/path/to/words")
s.Check("password")

Performance

$ 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

License

MIT