EncryptionTool

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesDecrypt

func AesDecrypt(data, key string) (string, error)

func AseEncrypt

func AseEncrypt(data, key string) (string, error)

func Md5String

func Md5String(getString string) string

func ParseRsaPrivateKey added in v0.1.4

func ParseRsaPrivateKey(privKeyStr string) (*rsa.PrivateKey, error)

解析私钥字符串

func ParseRsaPublicKey added in v0.1.4

func ParseRsaPublicKey(pubKeyStr string) (*rsa.PublicKey, error)

与DadjinTool的PHP工具的RSA互通 解析公钥字符串

func RsaDecrypt added in v0.1.4

func RsaDecrypt(privateKey *rsa.PrivateKey, encryptedData []byte) ([]byte, error)

使用私钥解密数据

func RsaEncrypt added in v0.1.4

func RsaEncrypt(publicKey *rsa.PublicKey, message []byte) ([]byte, error)

使用公钥加密数据

func Sha1String

func Sha1String(getString string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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