Documentation ¶
Overview ¶
Package util provides utility functions specific to the http-end-point component of Documize.
Index ¶
- func EncodeHTMLString(html string) (safe string)
- func EncodeTextTemplate(html string) (safe string, err error)
- func GeneratePassword(password string, salt string) string
- func GenerateRandomPassword() string
- func GenerateSalt() string
- func MatchPassword(hashedPassword string, password string, salt string) bool
- func UniqueID() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeHTMLString ¶
EncodeHTMLString encodes HTML string
func EncodeTextTemplate ¶
EncodeTextTemplate encodes input using text/template
func GeneratePassword ¶
GeneratePassword returns a hashed password.
func GenerateRandomPassword ¶
func GenerateRandomPassword() string
GenerateRandomPassword provides a string suitable for use as a password.
func GenerateSalt ¶
func GenerateSalt() string
GenerateSalt provides a string suitable for use as a salt value.
func MatchPassword ¶
MatchPassword copares a hashed password with a clear one.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.