Skip to content

Commit

Permalink
Fixed PasswordStrength enum initial number.
Browse files Browse the repository at this point in the history
Documented enum.
  • Loading branch information
renatoathaydes committed Apr 24, 2018
1 parent 26a90bb commit a679ea1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion encryption/crypto.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,15 @@ const (
type PasswordStrength int

const (
WEAK PasswordStrength = iota
// WEAK policy includes only standard latin alphabet characters.
WEAK PasswordStrength = iota + 1
// ALPHANUMERIC policy includes all alphanumeric characters.
ALPHANUMERIC
// NORMAL policy includes alphanumeric characters plus standard ASCII symbols.
NORMAL
// STRONG policy includes extended ASCII characters and standard ASCII symbols.
STRONG
// STRONGEST policy includes extended ASCII characters and extended ASCII symbols.
STRONGEST
)

Expand Down

0 comments on commit a679ea1

Please sign in to comment.