crypt

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKey

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

Types

type Crypter

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

Crypter can only be used once

func NewCrypter

func NewCrypter(key []byte) (e *Crypter, err error)

NewCrypter creates a new Crypter, or nil if there is an error

func (*Crypter) MakePipe

func (e *Crypter) MakePipe(out io.Writer) (io.Writer, error)

MakePipe takes an output (for the cipher text) writer and returns a writer to which you writer your cleartext

Jump to

Keyboard shortcuts

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