crypto

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AESCBCDecrypt

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

func AESCBCEncrypt

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

func AesECBDecrypt

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

func AesECBEncrypt

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

func EncodeMD5Bytes

func EncodeMD5Bytes(value string) []byte

func EncodeMD5String

func EncodeMD5String(value string) string

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 Pkcs5Padding

func Pkcs5Padding(cipherText []byte, blockSize int) []byte

func Pkcs7Padding

func Pkcs7Padding(cipherText []byte, blockSize int) []byte

func UnPadding

func UnPadding(origData []byte) []byte

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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