encryption

package
Version: v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2019 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(kp *sodium.BoxKP, encData []byte) ([]byte, error)

func Encrypt

func Encrypt(pk *sodium.BoxPublicKey, data []byte) []byte

func ExportBoxKP added in v0.0.6

func ExportBoxKP(kp *sodium.BoxKP) string

func ExportBoxPublicKey added in v0.0.6

func ExportBoxPublicKey(pk *sodium.BoxPublicKey) string

func GenKP

func GenKP() sodium.BoxKP

func ImportBoxKP

func ImportBoxKP(kpHex string) (*sodium.BoxKP, error)

func ImportBoxPublicKey

func ImportBoxPublicKey(pkHex string) (*sodium.BoxPublicKey, error)

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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