Documentation
¶
Index ¶
- func GetHash(hash string) ([]byte, error)
- func GetHashParts(hash string) ([]byte, []byte, error)
- func GetSalt(hash string) ([]byte, error)
- func IsSSHA(hash string) bool
- func NewHash(in []byte) ([]byte, error)
- func NewHashToString(in []byte) (string, error)
- func VerifyHash(hash, password string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHashParts ¶
GetHashParts returns the SSHA hash' Salt and SHA-1 hash
func NewHashToString ¶
NewHashToString will generate a new SSHA hash, with a random salt, and return it as string, Base64 Encoded, and including the {SSHA} in the beginning
func VerifyHash ¶
VerifyHash accepts a SSHA string, as well as a plaintext password, and checks whether this password is correct or not
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.