crypt

package
v0.0.0-...-ffeae0b Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CryptVersions cryptVersions = newCryptVersions(
	cryptVersionRecord0,
)

Expose the canonical list of available versions, as defined by their respective files. NOTE: We maintain this _here and only here_ to prevent modifying the version database, which we want to be immutable for all intents and purposes.

Functions

func Decrypt

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

Decrypt some data using the given password and its associated encryption function.

func Encrypt

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

Encrypt some data using the given password and the latest encryption function.

Types

This section is empty.

Jump to

Keyboard shortcuts

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