Repository navigation
Build unpassword: zero-knowledge password removal for Google Workspace - #1
Merged
Merged
Conversation
Static web app that removes known passwords from PDF, OOXML and ZIP files entirely in the browser, plus a Gmail launcher add-on. - core: qpdf (WASM) for PDF with a permission policy that keeps owner restrictions unless the owner password is supplied; ECMA-376 Agile and Standard decryption with HMAC integrity check; zip.js for ZipCrypto and WinZip AES with CRC verification of every entry - guardrails: one typed password per attempt, per-file rate limiting (lock after 10 failures), static tests against guessing features, persistence and non-Google endpoints - Google: GIS token flow with drive.file only, Picker, Drive "Open with", direct REST upload; Gmail add-on copies only the encrypted attachment - CSP restricts network access to the app origin and Google APIs - tests: Vitest unit tests with fixtures, Playwright E2E incl. network leak assertions and mocked Drive, cross-check against pikepdf, msoffcrypto-tool and zipfile - docs: security model, privacy policy, deployment setup Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019AALVgpSE45DWgj4sdEeJs
Resolve README conflict: keep the expanded README and carry over the updated description (Office, PDF files and compressed archives, for archiving purposes). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019AALVgpSE45DWgj4sdEeJs
- site/: static GitHub Pages site without JavaScript (CSP script-src 'none'), rendered from docs/*.md plus a landing page; serves as the Google Workspace Marketplace reference (privacy, terms, support, imprint, brand assets). The web app moves to /app/. - design/: vendored Nullthrone Design System tokens with self-hosted fonts (no Google Fonts request) and the new unpassword mark with PNG renderings, Marketplace banner, social card and screenshots (scripts/render-brand-assets.mjs). - web/: app restyled on the design tokens (brand band, square controls, brass call to action, footer links to the policies); logic unchanged. - docs/: TERMS, SUPPORT, IMPRINT; PRIVACY gains controller, hosting, legal bases and data subject rights; SETUP maps every Marketplace field to its URL. - Gmail add-on and Drive "Open with" point to /app/; Pages workflow builds app and site and hashes every published file; CI checks the site (CSP, no external resources, no broken links). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019AALVgpSE45DWgj4sdEeJs
rkmking12-hub
suggested changes
Oct 17, 2026
| @@ -1,2 +1,105 @@ | |||
| # unpassword | |||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
unpassword removes the password protection of PDF, DOCX/XLSX/PPTX and ZIP files whose password the user already knows, so the files can be archived under the user's own protection. The PR delivers four parts:
web/, Vite + TypeScript, no UI framework, no backend), served at/app/:gmail-addon/, Apps Script): lists password-protected attachments, copies the still-encrypted attachment to Drive and opens the web app. It never decrypts anything.site/, GitHub Pages): the reference for the Google Workspace Marketplace listing. It contains a landing page and the privacy policy, terms, security model, setup guide, support page, imprint and the brand assets.design/): the vendored Nullthrone Design System with self-hosted fonts, and the new unpassword mark.Zero-knowledge
connect-srcto its own origin and Google's API hosts. The documentation pages havescript-src 'none'and load nothing from third parties.drive.fileonly. The token is kept in memory.localStorage,sessionStorageand IndexedDB. Buffers are overwritten after use (best effort).Not a cracking tool
src/core/pdf/policy.ts, table-tested):Formats
cfb+@noble/*), with an HMAC integrity check. A mismatch is reported as a warningSite and Marketplace
https://nullthrone.github.io/unpassword/serves the following pages. The setup guide (docs/SETUP.md§5) maps every listing field to its URL.//app//privacy//terms//support//security//setup//imprint//marketplace/docs/*.md, so the repository and the policy URLs cannot diverge.scripts/render-brand-assets.mjsrenders the icons (16–128), the banner (220×140), the social card and three 1280×800 screenshots from the mark and the app.SHA256SUMS.txtover every file.Tests
web:npm testruns 63 unit tests.npm run test:e2eruns 8 Playwright tests, including a network assertion: no host outside the app origin and Google is contacted, and the password never appears in a URL or request body.site:node check.mjschecks that every page has a CSP and a title, that no page contains a script or external resource, and that internal links and anchors resolve.scripts/crosscheck.pychecks the outputs independently with pikepdf, msoffcrypto-tool and Pythonzipfile.node --test gmail-addon/detect.test.mjstests the add-on's detection logic.Not testable here
These steps need a real GCP project, Marketplace SDK or clasp and are documented in
docs/SETUP.md:Two assumptions are still unconfirmed:
drive.filegrant between the add-on and the web app when both are in the same projectThe legal texts (terms, privacy, imprint) are drafts and need a legal review.
🤖 Generated with Claude Code
https://claude.ai/code/session_019AALVgpSE45DWgj4sdEeJs