secreto

package
v0.0.131 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SaltLength = 32
	KeyLength  = 32
)

Variables

This section is empty.

Functions

func Decrypt

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

func DecryptSimple added in v0.0.69

func DecryptSimple(key, data []byte) ([]byte, error)

func DeriveKey

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

func Encrypt

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

func EncryptSimple added in v0.0.69

func EncryptSimple(key, data []byte) ([]byte, error)

func GenerateSimpleKey added in v0.0.69

func GenerateSimpleKey() ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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