Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultSalt = "crypto"
)
Functions ¶
func WithEncryption ¶
func WithEncryption(rwc io.ReadWriteCloser, key []byte) (io.ReadWriteCloser, error)
func WrapReadWriteCloser ¶
closeFn will be called only once
Types ¶
type ReadWriteCloser ¶
type ReadWriteCloser struct {
// contains filtered or unexported fields
}
func (*ReadWriteCloser) Close ¶
func (rwc *ReadWriteCloser) Close() (errRet error)
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader is an io.Reader that can read encrypted bytes. Now it only supports aes-128-cfb.
Click to show internal directories.
Click to hide internal directories.