aes

package
v2.0.25 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 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

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

CBCDecryptStr CBC解密

func CBCEncrypt

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

CBCEncrypt CBC加密

func CBCEncryptStr

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

CBCEncryptStr CBC加密

func CFBDecrypt

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

CFBDecrypt CFB解密

func CFBDecryptStr

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

CFBDecryptStr CFB解密

func CFBEncrypt

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

CFBEncrypt CFB加密

func CFBEncryptStr

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

CFBEncryptStr CFB加密

func CTRDecrypt

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

CTRDecrypt CTR解密

func CTRDecryptStr

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

CTRDecryptStr CTR解密

func CTREncrypt

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

CTREncrypt CTR加密

func CTREncryptStr

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

CTREncryptStr CTR加密

func Decrypt

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

Decrypt 解密

func DecryptStr

func DecryptStr(key, data string) (string, error)

DecryptStr AES解密

func Encrypt

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

Encrypt 加密

func EncryptStr

func EncryptStr(key, data string) string

EncryptStr AES加密

func GCMDecrypt

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

GCMDecrypt GCM解密

func GCMDecryptStr

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

GCMDecryptStr GCM解密

func GCMEncrypt

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

GCMEncrypt GCM加密

func GCMEncryptStr

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

GCMEncryptStr GCM加密

func OFBDecrypt

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

OFBDecrypt OFB解密

func OFBDecryptStr

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

OFBDecryptStr OFB解密

func OFBEncrypt

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

OFBEncrypt OFB加密

func OFBEncryptStr

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