Help us shape the future of Go! Take the 2026 Go Developer Survey

core

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2026 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