Documentation
¶
Overview ¶
Based on crypto/cipher's StreamReader and StreamWriter.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReadWriter ¶
type ReadWriter struct { RW io.ReadWriter Sr, Sw cipher.Stream }
ReadWriter wraps a cipher.Stream into an io.Reader and io.Writer. It calls XORKeyStream to process each slice of data which passes through.
func New ¶
func New(rw io.ReadWriter, secret []byte) *ReadWriter
Click to show internal directories.
Click to hide internal directories.