Documentation ¶
Index ¶
- func Create(headers interface{}, file string, destFolder string, b cipher.Block, ...) (string, error)
- func CreateFromStreams(headers interface{}, r io.Reader, w io.Writer, b cipher.Block) error
- func Extract(source string, dest string, b cipher.Block) error
- func ExtractFromStream(r io.Reader, w io.Writer, b cipher.Block) (n int64, err error)
- func Head(file string, headers interface{}, b cipher.Block) error
- func HeadFromStream(r io.Reader, headers interface{}, b cipher.Block) error
- type PacketEncryption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(headers interface{}, file string, destFolder string, b cipher.Block, salt string) (string, error)
* Create creates an encrypted packet with provided headers and file content
func CreateFromStreams ¶
func ExtractFromStream ¶
Types ¶
type PacketEncryption ¶
type PacketEncryption struct {
Secret []string
}
Click to show internal directories.
Click to hide internal directories.