rsa

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(src, private []byte) ([]byte, error)

func DecryptOAEP

func DecryptOAEP(src, private []byte) ([]byte, error)

func Encrypt

func Encrypt(src, public []byte) ([]byte, error)

func EncryptOAEP

func EncryptOAEP(src, public []byte) ([]byte, error)

func GenRsaKey

func GenRsaKey(bit int) error

GenRsaKey openssl genrsa -out private.pem 2048 openssl rsa -in private.pem -pubout -out public.pem

Types

This section is empty.

Jump to

Keyboard shortcuts

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