Documentation ¶
Index ¶
- type ContentCipher
- func (c *ContentCipher) Decrypt(reader io.Reader) ([]byte, error)
- func (c *ContentCipher) DecryptBytes(cipherBytes []byte) ([]byte, error)
- func (c *ContentCipher) Encrypt(writer io.Writer) ([]byte, error)
- func (c *ContentCipher) EncryptBytes(plainBytes []byte) ([]byte, error)
- func (c *ContentCipher) KeyIsEqual(k string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContentCipher ¶
type ContentCipher struct {
// contains filtered or unexported fields
}
func NewContentCipher ¶
func NewContentCipher(password string) (*ContentCipher, error)
func (*ContentCipher) DecryptBytes ¶
func (c *ContentCipher) DecryptBytes(cipherBytes []byte) ([]byte, error)
func (*ContentCipher) EncryptBytes ¶
func (c *ContentCipher) EncryptBytes(plainBytes []byte) ([]byte, error)
func (*ContentCipher) KeyIsEqual ¶
func (c *ContentCipher) KeyIsEqual(k string) bool
Click to show internal directories.
Click to hide internal directories.