rsa

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type New

type New struct {
	PrivateKey []byte
	PublicKey  []byte
}

New ...

func Default

func Default(publicKey, privateKey []byte) *New

Default Default key

func (*New) Decrypt

func (get *New) Decrypt(ciphertext string) (string, error)

Decrypt RSA decryption

func (*New) Encrypt

func (get *New) Encrypt(origData string) (string, error)

Encrypt RSA encryption

Jump to

Keyboard shortcuts

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