MCPcopy Create free account
hub / github.com/rclone/rclone / EncryptData

Method EncryptData

backend/crypt/cipher.go:771–774  ·  view source on GitHub ↗

EncryptData encrypts the data stream

(in io.Reader)

Source from the content-addressed store, hash-verified

769
770// EncryptData encrypts the data stream
771func (c *Cipher) EncryptData(in io.Reader) (io.Reader, error) {
772 out, _, err := c.encryptData(in)
773 return out, err
774}
775
776// decrypter decrypts an io.ReaderCloser on the fly
777type decrypter struct {

Callers 2

TestEncryptDataFunction · 0.80

Calls 1

encryptDataMethod · 0.95

Tested by 2

TestEncryptDataFunction · 0.64