ked

package module
v0.0.0-...-8fe5bbd Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: MIT Imports: 4 Imported by: 0

README

ked

Documentation

Index

Constants

View Source
const (
	PROTO_SIZE = 1
	SALT_SIZE  = 16
	NONCE_SIZE = 12 // chacha20poly1305.NonceSize
	TAG_SIZE   = 16 // poly1305.TagSize
)

Variables

View Source
var (
	PASSWORD_DERIVATION_ITERATIONS = 12_983
	PROTO_VERSION                  = byte(0b0000_0001)
)

Functions

func Decrypt

func Decrypt(password []byte, data []byte) ([]byte, error)

Decrypt ...

func Encrypt

func Encrypt(password []byte, data []byte) ([]byte, error)

Encrypt ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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