crypto

package
Version: v0.0.0-...-e9436ff Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Blowfish

func Blowfish(content []byte) []byte

func EncryptMd5Hex

func EncryptMd5Hex(data []byte) string

* //"golang.org/x/crypto/blowfish" * MD5加密 * param []byte data: 待加密的数据 * return string

func EncryptMd5Sum

func EncryptMd5Sum(fileName string) (string, error)

*

* MD5加密(文件)
* param string fileName: 待加密的文件
* return string

func ZLibCompress

func ZLibCompress(src []byte) []byte

*

* zlib压缩

func ZLibUnCompress

func ZLibUnCompress(compressSrc []byte) []byte

*

* zlib解压缩

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL