<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

### Table of Contents

*   [uploadFile][1]
    *   [Parameters][2]
*   [retrieveAndDecryptFile][3]
    *   [Parameters][4]

## uploadFile

Encrypts a file using Lit and stored it in Web3 Storage

### Parameters

*   `fileToEncrypt` **File** File to encrypt and store on ceramic

Returns **[Promise][5]\<CIDString>** A promise that resolves to a CID for the Zip file that contains the encrypted file that's been stored

## retrieveAndDecryptFile

Retrieves a stream and decrypts message then returns to user

### Parameters

*   `cid` **[string][6]** the CID of the encrypted data the user wants to access

Returns **[Promise][5]<[string][6]>** A promise that resolves to the unencrypted string of what was stored

[1]: #uploadfile

[2]: #parameters

[3]: #retrieveanddecryptfile

[4]: #parameters-1

[5]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise

[6]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String
