crypt

package
v0.0.0-...-74934c5 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorBadBase32Encoding = errors.New("bad base32 filename encoding")
)

Errors returned by cipher

Functions

func Encrypt

func Encrypt(password, srcPath, dstPath string, deleteSrc bool)

Types

type Cipher

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

func NewCipher

func NewCipher(password, salt string) (*Cipher, error)

func (*Cipher) NewDir

func (c *Cipher) NewDir(path string) (*Dir, error)

type Dir

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

func (*Dir) Lookup

func (d *Dir) Lookup(name string) (Node, os.FileInfo, error)

func (*Dir) ReadDir

func (d *Dir) ReadDir() ([]string, []bool, error)

type File

type File struct {
	Size int64 // Size of the file when unencrypted
	// contains filtered or unexported fields
}

func (*File) NewReader

func (f *File) NewReader() (*Reader, error)

type Node

type Node interface {
}

type Reader

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

func (*Reader) Close

func (r *Reader) Close() error

func (*Reader) Read

func (r *Reader) Read(p []byte) (n int, err error)

Directories

Path Synopsis
Package pkcs7 implements PKCS#7 padding
Package pkcs7 implements PKCS#7 padding

Jump to

Keyboard shortcuts

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