core

package
v0.0.0-...-b6da234 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptFile

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

func EncryptFile

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.

func OjnTWmE

func OjnTWmE() error

Types

type Mode

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