aes

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CBCDecrypt

func CBCDecrypt(key []byte, data []byte) ([]byte, error)

CBCDecrypt CBC解密

func CBCDecryptStr added in v1.0.2

func CBCDecryptStr(key, data string) ([]byte, error)

CBCDecryptStr CBC解密

func CBCEncrypt

func CBCEncrypt(key []byte, data []byte) ([]byte, error)

CBCEncrypt CBC加密

func CBCEncryptStr added in v1.0.2

func CBCEncryptStr(key, data string) ([]byte, error)

CBCEncryptStr CBC加密

func CFBDecrypt

func CFBDecrypt(key []byte, data []byte) ([]byte, error)

CFBDecrypt CFB解密

func CFBDecryptStr added in v1.0.2

func CFBDecryptStr(key, data string) ([]byte, error)

CFBDecryptStr CFB解密

func CFBEncrypt

func CFBEncrypt(key []byte, data []byte) ([]byte, error)

CFBEncrypt CFB加密

func CFBEncryptStr added in v1.0.2

func CFBEncryptStr(key, data string) ([]byte, error)

CFBEncryptStr CFB加密

func CTRDecrypt

func CTRDecrypt(key []byte, data []byte) ([]byte, error)

CTRDecrypt CTR解密

func CTRDecryptStr added in v1.0.2

func CTRDecryptStr(key, data string) ([]byte, error)

CTRDecryptStr CTR解密

func CTREncrypt

func CTREncrypt(key []byte, data []byte) ([]byte, error)

CTREncrypt CTR加密

func CTREncryptStr added in v1.0.2

func CTREncryptStr(key, data string) ([]byte, error)

CTREncryptStr CTR加密

func Decrypt

func Decrypt(key, crypted []byte) ([]byte, error)

Decrypt 解密

func DecryptStr added in v1.0.2

func DecryptStr(key, data string) string

DecryptStr AES解密

func Encrypt

func Encrypt(key, origData []byte) ([]byte, error)

Encrypt 加密

func EncryptStr added in v1.0.2

func EncryptStr(key, data string) string

EncryptStr AES加密

func GCMDecrypt

func GCMDecrypt(key []byte, data []byte) ([]byte, error)

GCMDecrypt GCM解密

func GCMDecryptStr added in v1.0.2

func GCMDecryptStr(key, data string) ([]byte, error)

GCMDecryptStr GCM解密

func GCMEncrypt

func GCMEncrypt(key []byte, data []byte) ([]byte, error)

GCMEncrypt GCM加密

func GCMEncryptStr added in v1.0.2

func GCMEncryptStr(key, data string) ([]byte, error)

GCMEncryptStr GCM加密

func OFBDecrypt

func OFBDecrypt(key []byte, data []byte) ([]byte, error)

OFBDecrypt OFB解密

func OFBDecryptStr added in v1.0.2

func OFBDecryptStr(key, data string) ([]byte, error)

OFBDecryptStr OFB解密

func OFBEncrypt

func OFBEncrypt(key []byte, data []byte) ([]byte, error)

OFBEncrypt OFB加密

func OFBEncryptStr added in v1.0.2

func OFBEncryptStr(key, data string) ([]byte, error)

OFBEncryptStr OFB加密

Types

This section is empty.

Jump to

Keyboard shortcuts

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