myrsa

package
v0.0.0-...-001208e Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RsaCrypter

type RsaCrypter struct {
	// contains filtered or unexported fields
}

func New

func New() (*RsaCrypter, error)

func (*RsaCrypter) Decrypt

func (r *RsaCrypter) Decrypt(data []byte) ([]byte, error)

func (*RsaCrypter) Encrypt

func (r *RsaCrypter) Encrypt(data []byte, pubKeyBytes []byte) ([]byte, error)

encrypt our message with user B public key

func (*RsaCrypter) PubKey

func (r *RsaCrypter) PubKey() []byte

get pub key as bytes to send over network

Jump to

Keyboard shortcuts

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