encrypt

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AESCBCDecrypt

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

func AESCBCEncrypt

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

func AESECBDecrypt

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

AESECBDecrypt ECB PKCS5 解密

func AESECBEncrypt

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

AESECBEncrypt ECB PKCS5 加密

func NewECBDecrypter

func NewECBDecrypter(b cipher.Block) cipher.BlockMode

NewECBDecrypter returns a BlockMode which decrypts in electronic code book mode, using the given Block.

func NewECBEncrypter

func NewECBEncrypter(b cipher.Block) cipher.BlockMode

NewECBEncrypter returns a BlockMode which encrypts in electronic code book mode, using the given Block.

func Xor

func Xor(src, key []byte) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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