md5

package
v0.0.0-...-ac3974b Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CryptPassword

func CryptPassword(password, salt string) string

CryptPassword 加密密码

func Encode

func Encode(v interface{}) string

将任意类型的变量进行md5摘要(注意map等非排序变量造成的不同结果)

func EncodeFile

func EncodeFile(path string) string

将文件内容进行MD5哈希摘要计算

func EncodeString

func EncodeString(v string) string

将字符串进行MD5哈希摘要计算

func GenRandomString

func GenRandomString(length int, specialChar bool) string

GenRandomString 生成随机字符串 length 生成长度 specialChar 是否生成特殊字符

func MD5

func MD5(text string) string

生成32位MD5

Types

This section is empty.

Jump to

Keyboard shortcuts

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