rsaencrypt

package
v1.6.5 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt added in v1.4.1

func Decrypt(cipherText, privatePem []byte) ([]byte, error)

Decrypt 解密 cipherText 需要解密的byte数据 path 私钥文件路径

func DecryptBlock added in v1.4.1

func DecryptBlock(cipherText, privatePem []byte) ([]byte, error)

DecryptBlock 分段解密 cipherText 需要解密的byte数据 path 私钥文件路径

func Encrypt added in v1.4.1

func Encrypt(plainText, publicPem []byte) ([]byte, error)

Encrypt 加密 plainText 加密内容 path 公钥文件地址

func EncryptBlock added in v1.4.1

func EncryptBlock(plainText, publicPem []byte) ([]byte, error)

EncryptBlock 分段加密 plainText 加密内容 path 公钥文件地址

func GenerateRSAKey

func GenerateRSAKey(bits int)

GenerateRSAKey 生成RSA私钥和公钥,保存到文件中 bits 证书大小

Types

This section is empty.

Jump to

Keyboard shortcuts

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