ras

package
v1.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptRSA

func DecryptRSA(cipherText string, pemKey string) (plain string, err error)

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

func EncryptRSA

func EncryptRSA(plainText string, pubKey string) (cipher string, err error)

EncryptRSA RSA加密 plainText 要加密的数据 path 公钥匙文件地址

func GenerateRSAKey

func GenerateRSAKey(bits int) (private string, public string, err error)

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