encrypt

package
v3.6.4 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CBC

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

func NewCBC

func NewCBC(iv, key, content []byte) *CBC

func (*CBC) Decrypt

func (cbc *CBC) Decrypt() ([]byte, error)

CBC解密数据

func (*CBC) Encrypt

func (cbc *CBC) Encrypt() ([]byte, error)

加密数据

type Signable

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

func NewSignable

func NewSignable(sort bool, parts ...string) *Signable

func (*Signable) IsEqual

func (sign *Signable) IsEqual(signature string) bool

对比签名

func (*Signable) Sign

func (sign *Signable) Sign() string

生成签名

Jump to

Keyboard shortcuts

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