arsa

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 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 Rsa

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

Rsa rsa encryption algorithm

func New

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

New Default key

func (*Rsa) Decrypt

func (r *Rsa) Decrypt(ciphertext string) (string, error)

Decrypt RSA decryption

func (*Rsa) Encrypt

func (r *Rsa) 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