cipher

package
v1.0.4030 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cipher

type Cipher struct {
	// contains filtered or unexported fields
}

*

  • 加密方式 *
  • @create 2022-7-26
  • @author deatil

func AddFunc

func AddFunc(name string, block CipherFunc) *Cipher

func Default

func Default() *Cipher

return default cipher

func New

func New() *Cipher

构造函数

func WithFunc

func WithFunc(funcs CipherFuncMap) *Cipher

func (*Cipher) AddFunc

func (this *Cipher) AddFunc(name string, block CipherFunc) *Cipher

添加

func (*Cipher) GetFunc

func (this *Cipher) GetFunc(name string) CipherFunc

类型

func (*Cipher) WithFunc

func (this *Cipher) WithFunc(funcs CipherFuncMap) *Cipher

覆盖

type CipherFunc

type CipherFunc = func([]byte) (cipher.Block, error)

CipherFunc

func GetFunc

func GetFunc(name string) CipherFunc

type CipherFuncMap

type CipherFuncMap = map[string]CipherFunc

CipherFunc map 列表

Jump to

Keyboard shortcuts

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