aes_ecb

package
v0.0.0-...-61829c1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AesTool

type AesTool struct {
	//128 192  256位的其中一个 长度 对应分别是 16 24  32字节长度
	Key       []byte
	BlockSize int
}

AES ECB模式的加密解密

func NewAesTool

func NewAesTool(key []byte, blockSize int) *AesTool

func (*AesTool) Decrypt

func (this *AesTool) Decrypt(src []byte) ([]byte, error)

func (*AesTool) Encrypt

func (this *AesTool) Encrypt(src []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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