cipher

package
v0.0.0-...-3bd58ec Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContentCipher

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

func NewContentCipher

func NewContentCipher(password string) (*ContentCipher, error)

func (*ContentCipher) Decrypt

func (c *ContentCipher) Decrypt(reader io.Reader) ([]byte, error)

func (*ContentCipher) DecryptBytes

func (c *ContentCipher) DecryptBytes(cipherBytes []byte) ([]byte, error)

func (*ContentCipher) Encrypt

func (c *ContentCipher) Encrypt(writer io.Writer) ([]byte, error)

func (*ContentCipher) EncryptBytes

func (c *ContentCipher) EncryptBytes(plainBytes []byte) ([]byte, error)

func (*ContentCipher) KeyIsEqual

func (c *ContentCipher) KeyIsEqual(k string) bool

Jump to

Keyboard shortcuts

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