encrypt

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesDecrypt

func AesDecrypt(encrypted []byte, key string) ([]byte, error)

AesDecrypt AES Decrypt

func AesEncrypt

func AesEncrypt(origData []byte, key string) ([]byte, error)

AesEncrypt AES Encrypt,CBC

func MD5

func MD5(v string) string

func SignSHA256WithRSA

func SignSHA256WithRSA(source string, privateKey *rsa.PrivateKey) (signature string, err error)

SignSHA256WithRSA generates a signature for a string using the SHA256WithRSA algorithm with a given private key.

Types

type Azdg

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

func NewAzdg

func NewAzdg(key string) *Azdg

func (*Azdg) Decrypt

func (a *Azdg) Decrypt(sourceText string) string

func (*Azdg) Encrypt

func (a *Azdg) Encrypt(sourceText string) string

Jump to

Keyboard shortcuts

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