Documentation ¶
Index ¶
- Variables
- func CheckPwd(reqPwd, dataPwd string) error
- func Encrypt(password string) (encryptPwd string)
- func FatalOnError(err error, msg string, data ...interface{})
- func LogOnError(code string, err error, data ...interface{})
- func NewLen(length int) string
- func NewLenChars(length int, chars []byte) string
- func WipeOutZero(buf []byte) []byte
- type Exception
- type Message
Constants ¶
This section is empty.
Variables ¶
View Source
var AsciiChars = []byte("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()-_=+,.?/:;{}[]`~")
Functions ¶
func CheckPwd ¶ added in v0.1.19
不同数据的加密值一定不同,相同数据的加密值一定相同,因此,在处理用户登录时只需要对用户传递的密码做加密处理,并与原加密值做比较是否一致即可
func FatalOnError ¶
func LogOnError ¶ added in v0.1.18
func NewLenChars ¶ added in v0.1.20
NewLenChars returns a new random string of the provided length, consisting of the provided byte slice of allowed characters(maximum 256).
Types ¶
Click to show internal directories.
Click to hide internal directories.