rsa

package
v0.0.0-...-71583f2 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptWithPrivateKeyString

func DecryptWithPrivateKeyString(privateKey, cipher string) (string, error)

DecryptWithPrivateKeyString decrypts the cipher with private key string

func DecryptWithPublicKeyString

func DecryptWithPublicKeyString(publicKey, cipher string) (string, error)

DecryptWithPublicKeyString decrypts the cipher with public key string

func Encrypt

func Encrypt(keyType, message string) (string, error)

Encrypt encrypts the message

func EncryptWithPrivateKeyString

func EncryptWithPrivateKeyString(privateKey, message string) (string, error)

EncryptWithPrivateKeyString encrypts the message with private key string

func EncryptWithPublicKeyString

func EncryptWithPublicKeyString(publicKey, message string) (string, error)

EncryptWithPublicKeyString encrypts the message with public key string

Types

This section is empty.

Jump to

Keyboard shortcuts

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