gmd5

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

README

MD5 工具

工具加载

import (
	"github.com/cnlesscode/gotool/gmd5"
)

Md5(原始字符 string) string

函数功能 : 简单 md5 加密 返回格式 : string

fmt.Printf("gmd5.Md5(\"test\"): %v\n", gmd5.Md5("test"))

ToMd5Pwd(原始字符 string) string

函数功能 : 复杂 md5 加密 (2次 Md5 加密后再进行混淆) 返回格式 : string

fmt.Printf("gmd5.Md5(\"test\"): %v\n", gmd5.Md5("test"))

ToMd5Pwd(原始字符 string) string

函数功能 : 复杂 md5 加密 (2次 Md5 加密后再进行混淆) 返回格式 : string

fmt.Printf("gmd5.ToMd5Pwd(\"test\"): %v\n", gmd5.ToMd5Pwd("test"))

PwdToMd5(复杂Md5密码 string) string

函数功能 : 将复杂 md5 密码翻译为 2次md5 返回格式 : string

fmt.Printf("%v\n", gmd5.PwdToMd5("fb469d7ef430b0baf0cab6c436e701337529"))

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Md5

func Md5(str string) string

Md5 加密

func PwdToMd5

func PwdToMd5(pwd string) string

将密码翻译为2次 md5

func ToMd5Pwd

func ToMd5Pwd(str string) string

将字符串转换为自定义 md5 密码

Types

This section is empty.

Jump to

Keyboard shortcuts

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