加密md5类

package
v0.0.0-...-2910145 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

包gmd5提供了MD5加密算法的实用API。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func X加密

func X加密(值 interface{}) (md5值 string, 错误 error)

Encrypt 使用MD5算法加密任意类型的变量。 它使用gconv包将`v`转换为字节类型。

func X加密PANI

func X加密PANI(值 interface{}) string

MustEncrypt 使用MD5算法对任意类型的变量进行加密。 它使用gconv包将`v`转换为字节类型。 如果发生任何错误,它会引发panic。

func X加密字节集

func X加密字节集(字节集 []byte) (md5值 string, 错误 error)

EncryptBytes 使用MD5算法加密`data`。

func X加密字节集PANI

func X加密字节集PANI(字节集 []byte) string

MustEncryptBytes 使用MD5算法加密`data`。 如果出现任何错误,将会导致panic。

func X加密文件

func X加密文件(路径 string) (md5值 string, 错误 error)

EncryptFile 使用MD5算法加密`path`指定文件的内容。

func X加密文件PANI

func X加密文件PANI(路径 string) string

MustEncryptFile 使用MD5算法加密`path`指定文件的内容。 如果发生任何错误,将会导致程序panic。

func X加密文本

func X加密文本(值 string) (md5值 string, 错误 error)

EncryptString 使用MD5算法加密字符串`data`。

func X加密文本PANI

func X加密文本PANI(值 string) string

MustEncryptString 使用MD5算法加密字符串`data`。 如果发生任何错误,它将引发panic。

Types

This section is empty.

Jump to

Keyboard shortcuts

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