Documentation ¶ Overview ¶ password contains password encoders. Index ¶ type Encoder func NewSha1Encoder() Encoder Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Encoder ¶ type Encoder interface { // EncodePassword encodes the raw password. EncodePassword(password []byte) []byte // IsValidPassword checks a raw password against an encoded password. IsValidPassword(encodedPassword, password []byte) bool } Encoder is used to implement password encoder. func NewSha1Encoder ¶ func NewSha1Encoder() Encoder NewSha1Encoder creates new encoder. Source Files ¶ View all Source files encoder.go Click to show internal directories. Click to hide internal directories.