rsa

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptWithPrivateKey

func DecryptWithPrivateKey(privateKey []byte, encryptData string) ([]byte, error)

DecryptWithPrivateKey 私钥解密

func EncryptWithPublicKey

func EncryptWithPublicKey(publicKey []byte, bs string) (string, error)

EncryptWithPublicKey 公钥加密

func RsaDecrypt

func RsaDecrypt(ciphertext []byte, filePth string) ([]byte, error)

func RsaEncrypt

func RsaEncrypt(origData []byte, filePth string) ([]byte, error)

//////////////////////////////Rsa加解密算法/////////////////////

func RsaSign

func RsaSign(msg string) (string, error)

RsaSign 内容签名,用私钥签名

func RsaVerify

func RsaVerify(msg string, _sign string) error

RsaVerify 签名验证,用公钥进行验证 msg 源实内容 签名

func ThriDESDeCrypt

func ThriDESDeCrypt(crypted, key []byte) []byte

////////////////////////提供3Des加解密的方法/////////////////////////////////

func ThriDESEnCrypt

func ThriDESEnCrypt(origData, key []byte) []byte

ThriDESEnCrypt 加密

Types

This section is empty.

Jump to

Keyboard shortcuts

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