rsa

package
v0.0.0-...-1e877d2 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBadPem = errors.New("密钥错误")
)

Functions

func CheckSign

func CheckSign(data, target string, publicKey []byte) error

func PrivateDecrypt

func PrivateDecrypt(decryptStr string, path string) (string, error)

PrivateDecrypt 私钥解密

func PublicEncrypt

func PublicEncrypt(encryptStr string, path string) (string, error)

PublicEncrypt 公钥加密

func Sign

func Sign(data string, rsaPrivateKey []byte) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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