consts

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2024 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version   = "NastySecrets v1.3.0"
	UsageMenu = Version + `
	
Usage: nastysecrets [arguments] [options]
	
Arguments:
	-e		Perform encryption
	-d		Perform decryption
	-p		Folder to encrypt/decrypt its files recursively
	-v		Print the current version
Options:
	-n		Rename files to 'temp' for added privacy
			Default: false

	-t		How many files to encrpyt/decrypt simultaneously
			Default: 8
			Values: [1-25]
	
	-o		Path to write the config file to
			Default: . (Current directory)
	
	-c		Config file's path for decryption or re-using an old key
			Mandatory for decryption
	
More information: man nastysecrets
`
)

NastySecret's information

View Source
const (
	EEncryptionAndDecryption = iota + 1
	ENoEncryptionOrDecryption
	EConfigFileNotFound
	ECantOpenFile
	EInvalidKeyLength
	ENoPathProvided
	EPathInvalid
	EPathIsFile
	ENoFilesFound
	EOutputPathInvalid
	EThreadsAmountLessThanOne
	EThreadsAmountUnsafe
	EVersionFlagNotAlone
	ENoFlagProvided
)

Error enums Errors beging with 'E' for better accessability

View Source
const (
	Encryption = iota + 1
	Decryption
	ShowVersion
)

Operation enum

Variables

View Source
var ValidKeyLengths = [3]int{16, 24, 32}

Valid key lengths

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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