rsa

package
v0.2.1-0...-8ff3ae7 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt4PemByPriKey

func Decrypt4PemByPriKey(input []byte, privateKey string) ([]byte, error)

私钥解密

func Decrypt4PemByPubKey

func Decrypt4PemByPubKey(input []byte, publicKey string) ([]byte, error)

公钥解密

func Encrypt2PemByPriKey

func Encrypt2PemByPriKey(input []byte, privateKey string, block pem.Block) ([]byte, error)

私钥加密

func Encrypt2PemByPubKey

func Encrypt2PemByPubKey(input []byte, publicKey string, block pem.Block) ([]byte, error)

公钥加密

Types

This section is empty.

Jump to

Keyboard shortcuts

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