crypto

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(key []byte, msg []byte) ([]byte, error)

func DeriveKey

func DeriveKey(salt []byte, password string) []byte

func Encrypt

func Encrypt(key []byte, msg []byte) ([]byte, error)

func GenrateKeyPair

func GenrateKeyPair(seed []byte) ([]byte, []byte)

func Rand

func Rand(len int) []byte

func Sign

func Sign(priv []byte, msg []byte) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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