encry

package
v0.0.0-...-04aed10 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

add by tanglongsen

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