keyfile

package
v0.0.0-...-2cd715e Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(path, passphrase string) ([]byte, error)

Read reads a file with encrypted contents from a given path, decrypts the contents and returns them.

func Write

func Write(path, passphrase string, contents []byte) error

Write encrypts contents using AES-GCM and a passphrase, and writes the encrypted contents to the given path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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