crypto

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeCrypt

func DeCrypt(str, key string) (string, error)

DeCrypt 解密

func EnCrypt

func EnCrypt(str, key string) (string, error)

EnCrypt 加密

func HmacSha256 added in v0.4.8

func HmacSha256(str string, key string) []byte

HmacSha256 HMAC-SHA256

func MD5Encode16 added in v0.4.8

func MD5Encode16(data string) string

MD5Encode16 返回一个16位md5加密后的字符串

func Md5 added in v0.4.8

func Md5(str string) []byte

Md5 MD5

func Md5String added in v0.4.8

func Md5String(str string) string

func Sha1 added in v0.4.8

func Sha1(str string) []byte

Sha1 SHA1

Types

This section is empty.

Jump to

Keyboard shortcuts

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