crypto

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2020 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dencrypt

func Dencrypt(crypto string, pubkey string, seed []byte, envelope string, cryptContent string) (string, error)

func Encrypt

func Encrypt(crypto string, seed []byte, pubkey string, content string) (string, string, error)

func GenerateKey

func GenerateKey(crypto string, seed []byte) (string, error)

func RandBytes

func RandBytes(size int) []uint8

func RenewEnvelope

func RenewEnvelope(crypto string, seed []byte, old string, news string, envelope string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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