ioutils

package
v0.0.0-...-93b8736 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: 0BSD Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const PBKDFIterations = 100000

Number of iterations used by the key derivation function.

View Source
const SaltLength = 32

Length of the key derivation salt in bytes.

Variables

This section is empty.

Functions

func Decrypt

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

Decrypt decrypts output from the Encrypt() function.

func Encrypt

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

Encrypt compresses and encrypts plaintext using the specified password.

func Load

func Load(filename, password string) ([]byte, error)

Load reads and decrypts data from an encrypted file.

func Save

func Save(filename, password string, plaintext []byte) error

Save compresses and writes plaintext as an encrypted file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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