saltedlib

package
v0.0.0-...-a92ed7b Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2023 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ChunkSize  = 4096
	HeaderSize = 64
)

Variables

This section is empty.

Functions

func DeriveOutputFilename

func DeriveOutputFilename(sourceFilename string, decrypt bool) string

Types

type Argon2Params

type Argon2Params struct {
	// contains filtered or unexported fields
}

type EncryptedFile

type EncryptedFile struct {
	OutputFilename string
	InputFilename  string

	NumChunks int64

	Verbose bool
	// contains filtered or unexported fields
}

func ReadAndDecrypt

func ReadAndDecrypt(sourceFilename string, destFilename string, passphrase string, verbose bool) (*EncryptedFile, error)

func ReadAndEncrypt

func ReadAndEncrypt(sourceFilename string, destFilename string, passphrase string, verbose bool) (*EncryptedFile, error)

func (*EncryptedFile) WriteFooter

func (ef *EncryptedFile) WriteFooter()

func (*EncryptedFile) WriteHeader

func (ef *EncryptedFile) WriteHeader()

Jump to

Keyboard shortcuts

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