crypto

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AESECBDecrypter

type AESECBDecrypter ecb

AESECBDecrypter can decrypt aes ecb.

func NewAESECBDecrypter

func NewAESECBDecrypter(key []byte) (*AESECBDecrypter, error)

NewAESECBDecrypter generates a new AESECBDecrypter

func (*AESECBDecrypter) CryptBlocks

func (d *AESECBDecrypter) CryptBlocks(dst, src []byte)

CryptBlocks encrypts the given array and saves it into dst

func (*AESECBDecrypter) Decypt

func (d *AESECBDecrypter) Decypt(data []byte) ([]byte, error)

Decypt decrpts the given array by using base64decodeing and aes-ecb.

Jump to

Keyboard shortcuts

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