encrypt

package
v0.0.0-...-0286adb Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//BASE64字符表,不要有重复
	BASE64TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789*^"
)

Variables

This section is empty.

Functions

func Base64Decode

func Base64Decode(str string, isLocal bool) (string, error)

*

  • base64解密

func Base64DecodeURL

func Base64DecodeURL(str string, isLocal bool) (string, error)

func Base64Encode

func Base64Encode(str string, isLocal bool) string

*

  • base64加密

func Base64EncodeURL

func Base64EncodeURL(str string, isLocal bool) string

func GetGuid

func GetGuid() string

*

  • 获取一个Guid值

func GetMd5String

func GetMd5String(s, key string) string

*

  • 对一个字符串进行MD5加密,不可解密

func GetUuid

func GetUuid(size int) string

生成Guid字串

func Md5

func Md5(s string) string

func NewLicense

func NewLicense(exType, exMail, expireTime string) string

exType=EX1,EX0=试用 exMail=exchange邮箱 expiretime过期时间,2015-03-19

Types

This section is empty.

Jump to

Keyboard shortcuts

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