Skip to content

Directly stream to encrypted zip archive - #70

Merged
besendorf merged 5 commits into
mainfrom
write_directly_into_age
Oct 9, 2025
Merged

besendorf merged 5 commits into
mainfrom
write_directly_into_age

Conversation

@besendorf

Copy link
Copy Markdown
Collaborator

implements #9
WIP, still writes bugreport and backup to disk first.

@besendorf besendorf changed the title WIP: directly stream to encrypted zip archive Directly stream to encrypted zip archive Sep 2, 2025
Comment thread utils/apks.go
}

// Create a ReadSeeker from the APK data for apkverifier library
readSeeker := bytes.NewReader(apkData)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Would be nice to see if we can read these from the encrypted age container instead of memory.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Unfortunatly we cant read these apks from the encrypted container because we dont have the secret key. Androidqf users only have the public key. Instead I pushed a commit to skip the certificate checks when doing encrypted aquisitions.

The only other solution would be to save to a symmetric encrypted archive first, read the apks, do verification checks, delete known apks and encrypt with the public key. This however is more complicated and takes longer to run. I suggest merging the current implementation for now.

@besendorf
besendorf merged commit 8521a04 into main Oct 9, 2025
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

Successfully merging this pull request may close these issues.

2 participants