aes

package
v0.0.0-...-6bcf8dd Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesCBCDecrypt

func AesCBCDecrypt(encrypted []byte, key []byte) ([]byte, error)

func AesCBCDecryptWithIV

func AesCBCDecryptWithIV(encrypted []byte, key, iv []byte) ([]byte, error)

解密

func AesCBCEncrypt

func AesCBCEncrypt(src, key []byte) ([]byte, error)

func AesCBCEncryptWithIV

func AesCBCEncryptWithIV(src, key, iv []byte) ([]byte, error)

CBC模式 加密

func AesECBDecrypt

func AesECBDecrypt(encrypted []byte, key []byte) ([]byte, error)

解密

func AesECBEncrypt

func AesECBEncrypt(src, key []byte) ([]byte, error)

ECB模式 加密

func Decrypt

func Decrypt(src string, key string) (msg string, err error)

Decrypt 解密字符串

func Encrypt

func Encrypt(msg string, key string) (string, error)

Encrypt 加密字符串

func GenerateKey

func GenerateKey(key []byte, keylen int) (genKey []byte)

Types

This section is empty.

Jump to

Keyboard shortcuts

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