xaes

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DECRYPT 解密模式
	DECRYPT = 0
	// ENCRYPT 加密模式
	ENCRYPT = 1
)

Variables

This section is empty.

Functions

func AES_Decrypt_CBC

func AES_Decrypt_CBC(ciphertext, key []byte, iv []byte) ([]byte, error)

func AES_Decrypt_ECB added in v1.0.2

func AES_Decrypt_ECB(data, key string) (out string, err error)

func AES_Encrypt_CBC

func AES_Encrypt_CBC(data, key, iv string) (out string, err error)

func AES_Encrypt_ECB added in v1.0.2

func AES_Encrypt_ECB(data, key string) (out string, err error)

func Aes added in v1.0.2

func Aes(data []byte, key []byte, flag int) ([]byte, error)

Aes aes mode ecb

func DecryptECB_Pad

func DecryptECB_Pad(plain, key []byte) ([]byte, error)

func Decrypt_ECB

func Decrypt_ECB(bytCipher, key []byte) ([]byte, error)

func EncryptECB_Pad

func EncryptECB_Pad(plain, key []byte) ([]byte, error)

func Encrypt_CBC added in v1.0.2

func Encrypt_CBC(plantText, key []byte, iv []byte) ([]byte, error)

func Encrypt_ECB

func Encrypt_ECB(plain, key []byte) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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