crypto

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AesOfbContext

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

func NewAesOfbContext

func NewAesOfbContext(password string, s settings.Settings) AesOfbContext

NewAesOfbContext creates a new crypto context.

func (AesOfbContext) Decrypt

func (c AesOfbContext) Decrypt(r io.Reader) (io.Reader, error)

Decrypt decrypts the data from the given reader and presents a reader to read the decrypted data from.

func (AesOfbContext) Encrypt

func (c AesOfbContext) Encrypt(w io.Writer) (io.WriteCloser, error)

Encrypt creates an io.WriteCloser that can be used to write data encrypted to the given io.Writer.

Jump to

Keyboard shortcuts

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