Documentation ¶
Overview ¶
package auth implement authorized.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authority ¶
type Authority interface { //Verify verify the hash with the password & salt. Verify(privSalt, password, hash []byte) bool //HashAndSalt generate a new hash & salt pair from password. HashAndSalt(password []byte) ([]byte, []byte, error) }
Authority implments authorized.
var Auther Authority = auth{}
Auther is a helper for authorized.
Click to show internal directories.
Click to hide internal directories.