Documentation
¶
Overview ¶
Package crypto implements a variant of the STREAM chunked encryption scheme.
Index ¶
Constants ¶
View Source
const ChunkSize = 64 * 1024
View Source
const StreamNonceSize = 16
StreamNonceSize is the size of the nonce used during streaming.
Variables ¶
This section is empty.
Functions ¶
func Encrypt ¶
func Encrypt(dst io.WriteCloser, mk []byte) (io.WriteCloser, error)
Encrypt takes the given destination and master key and return a encrypter writer.
func NewPassword ¶
NewPassword generates a new password for the given length.
Types ¶
Click to show internal directories.
Click to hide internal directories.