rsa

package
v0.0.0-...-247ce54 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(n *big.Int, d *big.Int, ciphertext string) string

func Enctrypt

func Enctrypt(n *big.Int, e *big.Int, message string) string

func GenerateKeyPair

func GenerateKeyPair(bits int) (n *big.Int, public *big.Int, private *big.Int)

Genrates a public and private key pair with given bits bits: bit-length of the key returns n (modulus), e (public exponent), d (private exponent)

Types

This section is empty.

Jump to

Keyboard shortcuts

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