crypto

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AESCBCDecrypt added in v1.1.0

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

func AESCBCEncrypt added in v1.1.0

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

func AesECBDecrypt added in v1.1.0

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

func AesECBEncrypt added in v1.1.0

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

func EncodeMD5

func EncodeMD5(value string) string

func NewECBDecrypter added in v1.1.0

func NewECBDecrypter(b cipher.Block) cipher.BlockMode

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

func NewECBEncrypter added in v1.1.0

func NewECBEncrypter(b cipher.Block) cipher.BlockMode

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

func PKCS5Padding added in v1.1.0

func PKCS5Padding(ciphertext []byte, blockSize int) []byte

func PKCS5UnPadding added in v1.1.0

func PKCS5UnPadding(origData []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