mask

package
v0.1.30 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PKCS5Padding

func PKCS5Padding(ciphertext []byte, blockSize int) []byte

func PKCS5UnPadding

func PKCS5UnPadding(origData []byte) []byte

Types

type RsaAuth

type RsaAuth interface {
	Sign(origData []byte) (string, error)
	Verify(signData string, origData []byte) error
}

func NewRsaAuth

func NewRsaAuth(iPriKey, oPubKey string) RsaAuth

type TripleDes

type TripleDes interface {
	EcbEncrypt(src []byte) (string, error)
	EcbDecrypt(src64 string) ([]byte, error)
	RandomSecretKey() (string, error)
}

func New3Des

func New3Des(secretKey string) (TripleDes, error)

New3Des 3des构造

Jump to

Keyboard shortcuts

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