rsaencrypt

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRSAKey

func GenerateRSAKey(bits int)

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

func RSADecrypt

func RSADecrypt(cipherText []byte, path string) ([]byte, error)

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

func RSAEncrypt

func RSAEncrypt(plainText []byte, path string) ([]byte, error)

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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