common

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Lnormal   = iota // 正常: 正常用户
	Linactive        // 未激活:需要发邮件激活,不能登陆
	Ldisable         // 禁用:不能登陆
	Lnowrite         // 不可写: 不能进行发帖和评论
)

Variables

This section is empty.

Functions

func AesDecrypt

func AesDecrypt(src []byte) (strDesc string, err error)

解密字符串

func AesEncrypt

func AesEncrypt(strMesg string) ([]byte, error)

加密字符串

func CheckPasswrd

func CheckPasswrd(check, password string) bool

func GetFileUniqueName

func GetFileUniqueName(name string) string

func GetMD5Hash

func GetMD5Hash(text string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL