Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make an example of encrypting a large file with seperate symettric encryption and Lit encryption of the symmetric key #241

Open
hannahhoward opened this issue Dec 23, 2024 · 1 comment

Comments

@hannahhoward
Copy link
Member

What

  1. Encrypt large blob using the examples from the Lit website
  2. Define a format for combining and storing the encrpyted cypher key and symettrically encrypted data hash
  3. Store the combined blob on storacha and prove you can get it back, decompose the file and decrypt using your ethereum address
@BravoNatalie
Copy link

After diving deeper into the docs and exploring the Lit code, I saw that they now support larger files. So, there’s no need to encrypt the file with a symmetric key first. The encryptFile method takes care of it by turning the file/blob into an ArrayBuffer before encrypting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants