rsacrypt

package
v0.0.0-...-17dcf83 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2020 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(keybytes []byte, infile string, inkeyfile string, outfile string) error

Decrypts the infile using the private key keyfile and saves the decrypted file as outfile. An error is returned if decryption is unsuccessful. keyfile, infile and outfile should be a pointer type.

func Encrypt

func Encrypt(pubKeys []string, infile string, outfile string, outkeyFileArr *[]string) (err error)

Encrypts the infile using the public key and saves the encrypted file as outfile. An error is returned if encryption is unsuccessful. infile and outfile should be a pointer type.

func GetPublickKeys

func GetPublickKeys(pubKeyFile string) (pubKeysBytes map[int]string, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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