rsa

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RSA

type RSA struct {
	PublicKeyPath  string
	PrivateKeyPath string
}

func (RSA) Decrypt

func (r RSA) Decrypt(cipherText []byte) ([]byte, error)

Decrypt RSA解密

func (RSA) Encrypt

func (r RSA) Encrypt(plainText []byte) ([]byte, error)

Encrypt RSA加密

func (RSA) GenerateRSAKey

func (r RSA) GenerateRSAKey(bits int) error

GenerateRSAKey 生成RSA私钥和公钥,保存到文件中

Jump to

Keyboard shortcuts

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