rsa

package
v0.0.0-...-d5aecf8 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(cipherByte []byte, privateKey string) (plainText string, err error)

使用私钥解密公钥加密的数据

func Encrypt

func Encrypt(plain string, publicKey string) (cipherByte []byte, err error)

使用对方的公钥的数据, 只有对方的私钥才能解开

Types

This section is empty.

Jump to

Keyboard shortcuts

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