des

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AndOr

type AndOr struct {
	Key byte
}

func (AndOr) Decrypt

func (a AndOr) Decrypt(data []byte) ([]byte, error)

func (AndOr) Encrypt

func (a AndOr) Encrypt(data []byte) ([]byte, error)

type DESType

type DESType string
const (
	DESTypeAndOr DESType = "and_or"
)

type IDES

type IDES interface {
	// Encrypt 数据加密
	Encrypt(data []byte) ([]byte, error)

	// Decrypt 数据解密
	Decrypt(data []byte) ([]byte, error)
}

func DESFactory

func DESFactory(name DESType, key any) IDES

Jump to

Keyboard shortcuts

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