core

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptFile added in v1.3.0

func DecryptFile(source *os.File, pathOut, password string, force bool, progress io.Writer) error

func EncryptFile added in v1.3.0

func EncryptFile(source *os.File, pathOut, password string, progress io.Writer) error

func GeneratePassphrase

func GeneratePassphrase(length int) (string, error)

Generates a secure passphrase of a given length. Returns error if length < 6. The resulting passphrase has it's words joined with "-" in between them.

Types

type Mode added in v1.3.0

type Mode int
const (
	Encryption Mode = iota
	Decryption
)

Jump to

Keyboard shortcuts

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