Skip to content
New issue

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

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

Already on GitHub? # to your account

feat: add support for large file encryption #3

Merged
merged 1 commit into from
Feb 20, 2025

Conversation

BravoNatalie
Copy link
Collaborator

@BravoNatalie BravoNatalie commented Feb 17, 2025

This PR addresses the objectives outlined in the issue storacha/project-tracking#315

Please refer to the issue for a detailed context.

Copy link
Member

@hannahhoward hannahhoward left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM this is a great add.

To check, are you able to do a roundtrip upload/download with a large file with the two scripts we have?

Also we don't yet have tests -- we should start thinking about that.

Overall though excellent adds to the existing functionality!


const fileContent = await fs.readFile(filePath)
let blob = new Blob([fileContent])
// Generate a random symmetric key and initialization vector
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where is this taken from? just want to make sure we're following well established patterns for any encryption we're doing

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, so this is how the Lit team recommends handling double encryption.

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

Successfully merging this pull request may close these issues.

2 participants