fscrypto

package
v0.1.23 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(r io.Reader, pass []byte) (io.Reader, error)

func Encrypt

func Encrypt(r io.Reader, pass []byte, tempDir string) (io.Reader, int64, error)

func NewDecryptPartIPFSStreamer

func NewDecryptPartIPFSStreamer(reader files.File, pass []byte) (cipher.Stream, error)

Types

type DecryptPartReader

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

func NewDecryptPartReader

func NewDecryptPartReader(filePath string, pass []byte) (*DecryptPartReader, error)

NewDecryptPartReader creates a new DecryptPartReader

func (*DecryptPartReader) Close

func (d *DecryptPartReader) Close() error

Close closes the input and output files

func (*DecryptPartReader) ReadAt

func (d *DecryptPartReader) ReadAt(p []byte, off int64) (n int, err error)

Jump to

Keyboard shortcuts

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