Documentation ¶ Index ¶ func MD5(s string) string func RandString(n int) string func RandToken() string func SHA1(s string) string type ConnAes func NewConnAes(key string, iv string) (ConnAes, error) func (ca *ConnAes) Decrypt(src []byte) ([]byte, error) func (ca *ConnAes) Encrypt(src []byte) []byte Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func MD5 ¶ func MD5(s string) string MD5 Generate 32-bit MD5 strings func RandString ¶ func RandString(n int) string func RandToken ¶ func RandToken() string func SHA1 ¶ func SHA1(s string) string Types ¶ type ConnAes ¶ type ConnAes struct { // contains filtered or unexported fields } func NewConnAes ¶ func NewConnAes(key string, iv string) (ConnAes, error) func (*ConnAes) Decrypt ¶ func (ca *ConnAes) Decrypt(src []byte) ([]byte, error) func (*ConnAes) Encrypt ¶ func (ca *ConnAes) Encrypt(src []byte) []byte Source Files ¶ View all Source files aes.go format.go hash.go rand.go Click to show internal directories. Click to hide internal directories.