ecb

package
v0.0.0-...-fd86128 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tool

type Tool struct {
	Key string
}

Tool ECB工具的加密解密 key字节长度16

func NewTool

func NewTool(key string) *Tool

NewTool 新建一个ECB加密工具

func (*Tool) Base64

func (ecbTool *Tool) Base64(src []byte) string

Base64 base64加密

func (*Tool) Decrypt

func (ecbTool *Tool) Decrypt(src []byte) ([]byte, error)

Decrypt ECB解密

func (*Tool) Encrypt

func (ecbTool *Tool) Encrypt(src []byte) ([]byte, error)

Encrypt ECB加密

func (*Tool) UnBase64

func (ecbTool *Tool) UnBase64(src string) ([]byte, error)

UnBase64 base64解密

Jump to

Keyboard shortcuts

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