meter.go

 1package passwordstrength
 2
 3type Strength string
 4
 5const (
 6	Weak   Strength = "weak"
 7	Medium Strength = "medium"
 8	Strong Strength = "strong"
 9)
10
11const (
12	mediumEntropyBits = 50
13	strongEntropyBits = 70
14)
15
16type Meter interface {
17	Strength(password string) Strength
18}