rsa

package
v0.0.0-...-4d5b2fa Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2021 License: Apache-2.0 Imports: 2 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 {
	P *big.Int
	Q *big.Int
	N *big.Int
	E *big.Int
	D *big.Int
}

func NewCheck

func NewCheck(nString string, eString string) RSA

func NewRSA

func NewRSA(keyLen int) RSA

func NewSign

func NewSign(nString string, dString string) RSA

func (*RSA) Decrypt

func (r *RSA) Decrypt(cipher string) string

func (*RSA) Encrypt

func (r *RSA) Encrypt(plaintext string) string

Jump to

Keyboard shortcuts

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