crypto

package
v0.0.0-...-3f120a3 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 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 Decoder

type Decoder interface {
	Decrypt(ctB64 string) (pt []byte, err error)
}

解密工具

type Encoder

type Encoder interface {
	Encrypt(pt []byte) (ctB64 string, err error)
}

加密工具

type Signer

type Signer interface {
	Sign(data []byte) (signatureB64 string, err error)
}

签名工具

type Verifier

type Verifier interface {
	Verify(data []byte, signatureB64 string) (valid bool, err error)
}

校验工具

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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