Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

A Google Workspace app that removes the password protection of **Office (DOCX/XLSX/PPTX), PDF files and compressed archives (ZIP)** whose password you already know, for archiving purposes: you can archive them under your own protection (account security, encrypted storage, access policies) instead of a sender's file password.

**Website and documentation:** <https://nullthrone.github.io/unpassword/>. The web app runs at [`/app/`](https://nullthrone.github.io/unpassword/app/).
**Website and documentation:** <https://unpassword.nullthrone.xyz/>. The web app runs at [`/app/`](https://unpassword.nullthrone.xyz/app/).

**Zero-knowledge:** decryption and re-saving happen entirely in your browser. There is no backend. The provider of unpassword never receives your files, your passwords or the decrypted content.

Expand Down
Binary file modified design/unpassword/png/icon-128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified design/unpassword/png/icon-16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified design/unpassword/png/icon-32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified design/unpassword/png/icon-48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified design/unpassword/png/icon-96.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/PRIVACY.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ unpassword's use of information received from Google APIs adheres to the [Google

## Hosting

This website and the web app are static files served by GitHub Pages, operated by GitHub, Inc., USA. To deliver the pages, GitHub processes technical access data: IP address, time, requested file and browser identification. GitHub may store this data in server logs. The logs contain no file content and no passwords. The legal basis is Art. 6(1)(f) GDPR, our legitimate interest in delivering the site securely. Details are in the [GitHub General Privacy Statement](https://docs.github.com/en/site-policy/privacy-policies/github-general-privacy-statement).
This website and the web app are static files at `unpassword.nullthrone.xyz`, served by GitHub Pages, operated by GitHub, Inc., USA. To deliver the pages, GitHub processes technical access data: IP address, time, requested file and browser identification. GitHub may store this data in server logs. The logs contain no file content and no passwords. The legal basis is Art. 6(1)(f) GDPR, our legitimate interest in delivering the site securely. Details are in the [GitHub General Privacy Statement](https://docs.github.com/en/site-policy/privacy-policies/github-general-privacy-statement).

The documentation pages contain no scripts. The web app loads scripts only from this site, and from Google only when you choose to use Google Drive.

Expand Down
252 changes: 194 additions & 58 deletions docs/SETUP.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/TERMS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

_Last updated: 2026-10-06_

These terms apply to the use of unpassword, which consists of the web application at `https://nullthrone.github.io/unpassword/app/` and the unpassword Gmail add-on. unpassword is provided by Thomas Sprock (Nullthrone), see the [imprint](IMPRINT.md).
These terms apply to the use of unpassword, which consists of the web application at `https://unpassword.nullthrone.xyz/app/` and the unpassword Gmail add-on. unpassword is provided by Thomas Sprock (Nullthrone), see the [imprint](IMPRINT.md).

## 1. The service

Expand Down
2 changes: 1 addition & 1 deletion gmail-addon/Code.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/** Base URL of the web app. Override with the script property UNPASSWORD_WEB_URL. */
function webAppUrl_() {
var url = PropertiesService.getScriptProperties().getProperty('UNPASSWORD_WEB_URL');
return (url || 'https://nullthrone.github.io/unpassword/app/').replace(/\/?$/, '/');
return (url || 'https://unpassword.nullthrone.xyz/app/').replace(/\/?$/, '/');
}

var INBOX_FOLDER = 'unpassword – Eingang';
Expand Down
5 changes: 2 additions & 3 deletions gmail-addon/appsscript.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@
"addOns": {
"common": {
"name": "unpassword",
"logoUrl": "https://nullthrone.github.io/unpassword/brand/icon-128.png",
"logoUrl": "https://unpassword.nullthrone.xyz/brand/icon-128.png",
"layoutProperties": { "primaryColor": "#141317", "secondaryColor": "#A87E2F" },
"openLinkUrlPrefixes": ["https://nullthrone.github.io/unpassword/app/"],
"useLocaleFromApp": true
"openLinkUrlPrefixes": ["https://unpassword.nullthrone.xyz/app/"]
},
"gmail": {
"contextualTriggers": [{ "unconditional": {}, "onTriggerFunction": "onGmailMessageOpen" }]
Expand Down
8 changes: 5 additions & 3 deletions scripts/render-brand-assets.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const { chromium } = require('@playwright/test');
const INK = '#141317';
const PAPER = '#F4F2EC';
const BRASS = '#C09A4B';
const BRASS_ICON = '#A87E2F'; // --brass-500

const svg = (file) => readFileSync(join(ROOT, 'design/unpassword', file), 'utf8');
// Fonts inlined as data URIs: pages rendered via setContent may not load file:// URLs.
Expand Down Expand Up @@ -46,11 +47,12 @@ async function shot(name, width, height, html) {
console.log(` ${name}`);
}

// Icons: ink square with the paper mark – legible on light and dark Marketplace backgrounds.
// Icons: brass mark on a transparent background, as the Marketplace review requires.
// Brass (an allowed mark colour) stays legible on light and dark surfaces, e.g. Gmail's dark theme.
for (const size of [16, 32, 48, 96, 128]) {
const file = size <= 32 ? 'mark-small.svg' : 'mark.svg';
const pad = Math.round(size * (size <= 32 ? 0.14 : 0.18));
const inner = `<div style="width:${size}px;height:${size}px;background:${INK};color:${PAPER};display:flex;align-items:center;justify-content:center">
const pad = Math.max(1, Math.round(size * 0.06));
const inner = `<div style="width:${size}px;height:${size}px;color:${BRASS_ICON};display:flex;align-items:center;justify-content:center">
${svg(file).replace('<svg ', `<svg width="${size - 2 * pad}" height="${size - 2 * pad}" `)}</div>`;
await shot(`icon-${size}.png`, size, size, page(size, size, inner));
}
Expand Down
9 changes: 5 additions & 4 deletions site/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { Marked } from "marked";

const ROOT = join(import.meta.dirname, "..");
const REPO = "https://github.com/nullthrone/unpassword";
export const SITE_URL = "https://nullthrone.github.io/unpassword/";
export const SITE_URL = "https://unpassword.nullthrone.xyz/";

const { values: args } = parseArgs({
options: { out: { type: "string" }, app: { type: "string" } },
Expand Down Expand Up @@ -236,7 +236,7 @@ function marketplacePage() {
<p class="eyebrow">Google Workspace Marketplace</p>
<h1>Brand assets</h1>
<div class="double-rule" aria-hidden="true"></div>
<p class="lede">Graphics for the Marketplace listing, generated from <code>design/unpassword</code> by <code>scripts/render-brand-assets.mjs</code>. The URLs the listing references are in the <a href="../setup/#5-marketplace-listing">setup guide</a>.</p>
<p class="lede">Graphics for the Marketplace listing, generated from <code>design/unpassword</code> by <code>scripts/render-brand-assets.mjs</code>. The URLs the listing references are in the <a href="../setup/#9-store-listing">setup guide</a>.</p>
<ul class="assets">
${rows}
</ul>
Expand Down Expand Up @@ -292,8 +292,9 @@ export function build() {
title: "Not found",
description: "This page does not exist.",
depth: 0,
body: `<section class="wrap-narrow doc"><p class="eyebrow">404</p><h1>This page does not exist.</h1><div class="double-rule" aria-hidden="true"></div><p class="prose">Go to the <a href="/unpassword/">overview</a>.</p></section>`,
}).replace(/(href|src)="(?!https?:|\/|#|mailto:)/g, '$1="/unpassword/'),
active: "404", // no navigation item is current
body: `<section class="wrap-narrow doc"><p class="eyebrow">404</p><h1>This page does not exist.</h1><div class="double-rule" aria-hidden="true"></div><p class="prose">Go to the <a href="/">overview</a>.</p></section>`,
}).replace(/(href|src)="(?!https?:|\/|#|mailto:)/g, '$1="/'),
);

write("assets/site.css", stylesheet());
Expand Down
8 changes: 7 additions & 1 deletion site/check.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ for (const f of files) {
if (!/<title>[^<]+<\/title>/.test(html))
errors.push(`${rel}: missing <title>`);
if (/<script\b/i.test(html)) errors.push(`${rel}: contains a <script>`);
// the site lives on its own domain; the github.io address only redirects
// (naming the CNAME target without a scheme is fine)
if (/https?:\/\/nullthrone\.github\.io/.test(html))
errors.push(
`${rel}: references nullthrone.github.io instead of the custom domain`,
);

for (const m of html.matchAll(
/<(img|script|source|iframe)\b[^>]*\ssrc="([^"]+)"/g,
Expand All @@ -61,7 +67,7 @@ for (const f of files) {
if (/^(https?:)?\/\//.test(m[1]))
errors.push(`${rel}: external resource ${m[1]}`);
}
if (rel === "404.html") continue; // absolute /unpassword/ links, checked via the other pages
if (rel === "404.html") continue; // root-absolute links, checked via the other pages
for (const m of html.matchAll(/<a\b[^>]*\shref="([^"]+)"/g)) {
const href = m[1];
if (/^(https?:|mailto:)/.test(href)) continue;
Expand Down
Loading