crypto

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AESDecryptByECB

func AESDecryptByECB(text, key string) string

func AESEncryptByECB

func AESEncryptByECB(text, key string) string

AESEncryptByECB golang和Java中的AES模式不一样:java aes默认加密模式为ECB golang 默认的是CBC模式

func EcbDecrypt

func EcbDecrypt(data, key []byte) []byte

func EcbEncrypt

func EcbEncrypt(data, key []byte) []byte

func Get16BitMD5

func Get16BitMD5(noSign string) string

func HmacSha256

func HmacSha256(message string, secret string) string

HmacSha256

func MD5

func MD5(noSign string) string

MD5

func PKCS5Padding

func PKCS5Padding(ciphertext []byte, blockSize int) []byte

此处加解密、消息摘要

func PKCS5Unpadding

func PKCS5Unpadding(origData []byte) []byte

func Sha256Sign

func Sha256Sign(noSign string) string

Sha256Sign

Types

This section is empty.

Jump to

Keyboard shortcuts

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