rsa

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustParsePrivateKey

func MustParsePrivateKey(privateKeyBase64 string) *rsa.PrivateKey

func MustParsePublicKey

func MustParsePublicKey(publicKeyBase64 string) *rsa.PublicKey

func RSADecrypt

func RSADecrypt(encryptedMessage string, privateKey string) (string, error)

func RSADecryptLongText

func RSADecryptLongText(cipherText, privKey string) (string, error)

分段解密函数

func RSAEncrypt

func RSAEncrypt(message string, publicKey string) (string, error)

func RSAEncryptLongText

func RSAEncryptLongText(message, pubKey string) (string, error)

分段加密函数

Types

This section is empty.

Jump to

Keyboard shortcuts

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