rsa

package
v0.0.0-...-fc9fbc1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeCryptByRSA

func DeCryptByRSA(cryptBytes []byte, privateKeyFile string) ([]byte, error)

RSA算法私钥解密 @param cryptBytes 密文字节数据 @param privateKeyFile 私钥文件

func EnCryptByRSA

func EnCryptByRSA(src []byte, pubKeyFile string) ([]byte, error)

RSA算法公钥加密 @param src 源数据字节 @param pubKeyFile 公钥文件

func GenerateKey

func GenerateKey(bits int, pemKeyPath string) error

生成公钥和私钥文件 @param bits RSA bit size @param pemKeyPath 生成公私钥的路径

Types

This section is empty.

Jump to

Keyboard shortcuts

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