PGP Converter

pgp-converter.com
PGP Converter

Encrypts, decrypts, signs and verifies PGP text and makes key pairs in the browser. No ads; works offline and can be self-hosted. Builds are signed, but must be checked by hand. No keyring or file encryption; private keys are safer in GnuPG.

Open Source

PGP Converter Source Code

Author

polyym

Description

Offline-capable, client-side OpenPGP web app to generate keys, encrypt, decrypt, sign, and verify messages locally in your browser. Supports Curve25519 & RSA with zero server uploads, strict hash-based CSP, reproducible builds, and Sigstore provenance attestations.

#cryptography#offline-first#openpgpjs#pgp#privacy#pwa#reproducible-builds#sigstore#svelte-kit#sveltekit#typescript#vitejs

Homepage

https://pgp-converter.com

Repository

  • LicenseAGPL-3.0
  • Created13 May 23
  • Primary languageTypeScript
  • Size1,734 KB
  • Stars5
  • Forks2
  • Watchers5

Language Usage

Language Usage

Project Health

  • Last commit20 hours ago
  • Open issuesNone
  • Latest release4.2.0

Top Contributors

Recent Commits

  • Hadi(29 Nov 26)

    v4.2.0: run it yourself, and keep the deploy token away from the project's packages The release of v4.2.0 came after four release candidates on dev. Compared with v4.1.1, anyone can run their own copy of PGP Converter, from source or as a Docker image that each release publishes, and the deploy workflow gives the Netlify token only to jobs that never install the project's packages. This was requested in @lissy93's review of Lissy93/awesome-privacy#911, which also pointed out the risk in the deploy workflow. Thank you. Both of these points are in this one pull request. They mostly touch different files and are listed separately below. Her review of this pull request led to rc.3. It adds moving image tags and a health check, drops two redirects the image didn't need, and rewrites the comments across the code so each says only what the code cannot. rc.4 adds a code of conduct and a Netlify credit on the home page, as required by Netlify's Open Source plan. Run it yourself: - README has a new section, Run It Yourself. It covers your own machine (npm ci, a build named after the commit, npm run preview), Docker, and any static web server, with the headers that server must send. It also covers HTTPS, with a reverse proxy example, HSTS, and what the Donate and About pages do on such a copy. - A Dockerfile builds the site as the deploy workflow does, and copies only build/ and the server's settings into a Caddy image on Alpine, pinned by version and digest. Node and the build's packages stay out of it. It runs as an unprivileged user on port 8080, with a HEALTHCHECK that the Image workflow waits on before it checks the image. Its files are those of a production build of the same commit, byte for byte. - docker/Caddyfile sends the released site's headers but Strict-Transport-Security, which belongs to whoever puts HTTPS in front. The content policy is written from each build's own build/_headers while the image is built (scripts/write-caddy-headers.ts), so it cannot go stale. The 404 page works as on the released site. The image makes no redirects: the build's own help.html forwards /help, and a test fails if netlify.toml gains a redirect the image lacks. - A new workflow, Image, runs for each published release. It checks the image against a production build of the same commit, and pushes it to ghcr.io/polyym/pgp-converter for 64-bit x86 and ARM, without a tag. It then checks what it pushed, attests it with Sigstore, and only then tags it: the version, the commit and, for a full release, 4.2, 4 and latest while it is the newest of each. So no tag names an image that failed its checks, and a pre-release or a re-published older release leaves the moving tags where they are. Anyone can check an image with `gh attestation verify oci://ghcr.io/polyym/pgp-converter:<version> --repo polyym/pgp-converter`. - The About page says you can run your own copy, and links the image and the README. It gives the command that checks the image of its release. Its Privacy Policy now suggests running your own copy first, which sends nothing to Netlify or anyone else once it runs, and then a VPN or Tor Browser as before. It also links Awesome Privacy beside Privacy Guides there, and in Useful Resources. - The app now tells three kinds of copy apart by their address. pgp-converter.com is the released site. The staging address, pull request previews, and the development server are test copies, as before: the notice under the top bar, the version in yellow, and fake wallet addresses. Any other address is a self-hosted copy, which shows its plain version and no notice. It has no wallet service, so its Donate page links to the Donate page at pgp-converter.com. Its About page says that the privacy policy is pgp-converter.com's, and its command for checking the files names the copy's own address. No setting in the build is involved, so every copy of a commit is made of the same files. - scripts/verify-deploy.ts has a --self-hosted mode for such copies, which also requires every page to carry exactly the build's policy. In every mode, it now refuses arguments it cannot use, and fails if any of its off-site redirect probes leads to another site. Deploy workflow: - Each run builds and tests in a job with no secrets and no write permission. On main, a second job signs the build and installs nothing. Then preview, production or staging deploys it. Only those jobs get the Netlify token, and they never install the project's packages. - The Netlify CLI, still 27.16.3, comes from its own lockfile in .github/deploy, installed with install scripts off. Its own packages still run with the token; their lockfile fixes which versions they are. README's Security section says so, and that a package of the project can still change the build before it is signed, which reproducible builds cover. - The deploy jobs name the environments preview, production and staging, so the secrets can be kept there. Each deploy step stops if the token or the project ID is empty, since the CLI would otherwise create a new Netlify project. - The wallet proxy may import only Node's own modules, as nothing else is installed for the deploy. A test checks it. - A new workflow runs zizmor on the workflows and Dependabot's settings, on every push to main or dev and every pull request into either. What it found is fixed: checkouts keep no credentials, Dependabot waits a week before proposing a release, and jobs that hold a token use no package cache. - Dependabot also proposes updates to the Netlify CLI's lockfile and to the Dockerfile's base images. Code of conduct and Netlify mention on homepage: - CODE_OF_CONDUCT.md is written for this project, following Project Include's guide, and credits the Contributor Covenant 2.1 for its lists. Reports go through GitHub: privately to GitHub Support, or publicly to the maintainer. Every page's footer links to it, at the build's own commit. - Under the home page's opening sentence, a small line reads "This site is powered by Netlify" and links to Netlify's home page. A self-hosted copy drops it once the page has loaded. Not covered: - Served over plain HTTP at any address but localhost, a copy cannot start its tools, because browsers withhold their cryptography there. README shows how to put a reverse proxy in front. - The image does not copy the host's case-insensitive addresses, or its redirects from /index and from a path ending in a slash, which gets the 404 page instead. Checked: - Type check, lint, formatting check, the tests (485 in rc.3 and rc.4) and the build pass on Windows for each candidate, and the Tests workflow passed on GitHub's Ubuntu 24.04 runner. zizmor and actionlint passed on Windows for rc.1 and rc.3, and rc.2 and rc.4 changed no workflow. A build on Windows matches the staging site, file for file. - The full QA of rc.1, in four rounds before it went to dev: builds like the build server's, every tool in Edge, Chrome and Firefox, GnuPG both ways, offline use and the update from v4.1.1, privacy, every page against v4.1.1, accessibility, hostile input, the docs and a code review. Every finding was checked a second time before it counted. What it found is fixed in rc.1, accepted with a reason, or listed for later where it was already in v4.1.1. - rc.2 changed only the About page and the candidate number, so it had no new QA, only the checks above and a look at the About page at phone and desktop width. - rc.3 changed the image, and the comments, JSDoc, test names and docs across the code. A script compared every file with rc.2 with comments removed: other code changed only in the scripts' messages, a few local names, check-args.ts's argument parsing, named constants in place of numbers in page text (with the same wording), the error page's title, deploy.yml's staging URL (now from its env value) and a few leftovers. The new comments were checked against the code, OpenPGP.js and the RFCs. Built from rc.3, the image passes verify-deploy --self-hosted, runs read-only and reports healthy. - rc.4 added the code of conduct, its footer link and the Netlify line. It included the checks above, a browser check at desktop and phone widths, and a check against Project Include's guide, GitHub's reporting docs, and Netlify's policy. - Tests, zizmor and the staging deploy passed on dev for each candidate, the last of which is the code in this pull request. rc.1 was tried on an Android phone in Firefox and Chrome, and on an iPhone in Safari. - A test pre-release of rc.1 on dev ran the Image workflow on GitHub. All five jobs passed, and the image, pulled without signing in, served a production build of the same commit, byte for byte, and had its attestation. - Not checked: the production deploy in the new layout, until this is merged, and Netlify's review for the Open Source plan, which needs 4.2.0 live. Nor has the Image workflow run on GitHub since rc.3 added the health wait and the moving tags; it next runs for the 4.2.0 release, the first to get 4.2, 4 and latest. The tag choice was tested against made-up tag lists instead. The test pre-release and its image are deleted, so the About page's links to the image show GitHub's 404 page until the 4.2.0 release publishes a new one.

  • Hadi(24 Nov 26)

    v4.1.1: read every copy of a key in a key box * v4.1.0-rc.1: staging site, release candidates and the version on every page The first release candidate of v4.1.0, and the first commit on dev. Nothing in it reaches the live site until dev is merged into main. Branches and release candidates - main stays what is released and changes only through a pull request. dev is where the next version is put together, and it reaches main as one commit for the release. - package.json holds the version being worked towards, 4.1.0, and beside it the number of the release candidate (releaseCandidate). Every change that goes to dev increments the number by one, and it resets to 1 when the version is raised. It is part of the code, so every copy shows the same one. - The app decides what to show from where it is opened. At pgp-converter.com, it shows the released version. Everywhere else (the staging address, a preview, a developer's own machine) it shows the candidate, 4.1.0-rc.1, in pale yellow and marked "dev build", with a notice under the top bar. Nothing has to be changed or removed to release: the same code shows 4.1.0 once it is live. - The Tests workflow runs on dev as it does on main. Dependabot opens its monthly updates against dev, so an update is on staging before it is released. Staging - The Deploy workflow has a third job. A push to dev runs the same checks as a production deploy, builds the site the same way and deploys it to https://dev--pgp-converter.netlify.app. The build is not signed: the attestation stays for what goes live. - The staging copy asks search engines to leave it out. The job adds an X-Robots-Tag header to build/_headers, so the files themselves stay those of a production build. - scripts/verify-deploy.ts takes --staging and checks the staging address after each deploy: the same files, the same content policy, and that header. Without the flag, it now fails if the released site ever sends the header, which would take it out of search results. In the app - Every page shows its version and the commit it was built from, in the footer. The homepage keeps its dot plate as well, and the About page names the same version. - The notice reads "This is a test address. The released site is pgp-converter.com." - Homepage: the sentence under the heading now reads "No account, no ads, and nothing you type is sent anywhere". "Every deploy is signed" now reads "Every release is signed", because staging deploys and previews are not signed. Docs and settings - README describes the two branches, the rules that protect them, the staging address and release candidates. CONTRIBUTING asks for pull requests against dev. SECURITY says where to find the version. - Netlify also serves the project at pgp-converter.netlify.app. A rule in netlify.toml sends that address on to pgp-converter.com, and the deploy check warns if it does not. - The domain was submitted to the browsers' HSTS preload list on 14 November 2026. netlify. toml and the README say so, and the deploy check warns if the header ever stops meeting the list's rules. Checked - Type check, lint, formatting check, 355 of 355 tests and the build pass on Windows and in an Ubuntu 24.04 container set up like the build server. The two builds are identical, file for file. - Both looks of the build in a browser: opened under the released site's name, it has no notice and a plain version on every page; on localhost and at a staging-like address, it shows the notice and the candidate. - As the released site, in Edge, Firefox and Chrome: every key type through every tool, with GnuPG both ways; privacy; accessibility; very long results; offline use and the update; the upgrade from the live v4.0.1. Compared with v4.0.1, pages differ only in the footer line and the homepage sentences. - The same privacy, tool, accessibility, offline and phone tests pass in the dev look. - Not checked: the staging job itself, the rules on dev, the Tests workflow on dev, the redirect and Dependabot's new target. Only pushes to dev and to main can show those. * v4.1.0-rc.2: fake wallets on the Donate page outside the released site The second release candidate of v4.1.0. The released site shows what it showed before. - The Donate page asks the wallet service at pgp-converter.com only. Everywhere else (the staging address, a preview, a developer's own machine), it asks nobody and shows four fake addresses, with a line above them that says so. A copy that is not the released site has no key for the service, so until now it showed "could not be loaded". - The fake addresses read as fake (FAKE-SOLANA-ADDRESS-FAKE-...) are shown in yellow in a dev build, and have their QR codes on the same yellow. They hold characters no chain allows, so a wallet will not send to one. - scripts/verify-deploy.ts no longer asks the wallet proxy when it checks the staging copy, where the answer was a warning on every deploy. The production check is unchanged. - README says what a copy outside the released site shows on the Donate page. Checked - Type check, lint, formatting check, 360 of 360 tests and the build pass on Windows. - The Donate page in a browser under three names. On the released site, it asks the wallet service and shows its answer, with nothing fake. On localhost and at a staging-like address, it asks nobody and shows the fake wallets, on a desktop and at two phone sizes. - Not run for this candidate: the Linux container and full QA. They'll wait until we have a release candidate closer to the envisioned production state. * v4.1.0-rc.3: say when the message box holds more than the message The third release candidate of v4.1.0. - Verify and Decrypt say when the message box holds more than the message. OpenPGP.js reads the first message in a text and passes over the rest without a word, so unsigned text above a signed message, below it or inside it stood beside a green verdict. A caution now follows the verdicts: "The box holds more than the message". On Verify, the short message becomes "Signature valid, but the box holds other text". The result shows only the message's own text, as before. - The caution cannot see text that is written in the data's own characters among the data (letters, digits, + and /). OpenPGP.js can be made to pass over such text, and nothing tells it from data. The comment on hasOtherText in armor.ts says so. - A key with no key flags, as old software made them, is treated alike on every page. Verify called a good signature from such a key "does not match" and Sign refused the key, while Encrypt and Decrypt used it. One setting in constants.ts now goes to every OpenPGP.js call that asks what a key may do, with a comment that says why. GnuPG uses such keys the same way. - A signature that matches a key which says it is not for signing is "not trusted", with the reason. It was "does not match", which accuses the message. - The About page's "Hosting & Privacy" section is headed "Privacy Policy". Its address (#hosting-privacy) is unchanged. - README and About say what the idle clear leaves on the Generate page: it clears only the passphrase and keeps the new keys. About also says what the host sees once the app is on a device, and which parts of a page are kept from translation. Checked - Type check, lint, formatting check, 408 of 408 tests and the build pass on Windows and in the Ubuntu 24.04 container, and the two builds are the same file for file. - The full QA, as the released site and in the dev look: every tool with every kind of key in Edge, Firefox and Chrome, with GnuPG both ways, privacy, accessibility, offline use and the update and upgrade from the live v4.0.1. - The paste clean-up reads generated and damaged texts as v4.0.1 does, and each new rule has a test that fails when the rule is taken out. - Not checked: Safari and a real phone. Only the push shows the staging deploy. * v4.1.1-rc.1: read every copy of a key in a key box The first release candidate of v4.1.1. It fixes a fault reported privately through a security advisory: a box that held two copies of one key used the first and ignored the other, so a key could be treated as good although the second copy showed it revoked. Keys - A recipient or sender box read the first copy of each key and dropped later ones. A later copy can carry a revocation, an earlier expiry date or a revoked subkey. With an old copy above it, Encrypt wrote to a revoked key without a warning, and Verify and Decrypt showed its signatures as valid. Copies of one key are now joined into one key that holds every signature any copy holds, whatever order they stand in. OpenPGP.js checks those signatures each time the key is used, as it does for one copy. GnuPG joins copies in the same way. - The join does not use the library's Key.update, which leaves signatures out: it turns away a further revocation once a key holds one, and swaps in a newer binding signature without checking it. The joined key is read again from its own bytes, so that a changed copy of a real signature cannot stand in for it. The comments on joinCopies in keys.ts give the reasons. - A public and a private copy of one key in such a box are refused whichever comes first. The "both keys" file from the Generate page was accepted there before, because its public key comes first. - An expired copy beside its renewed copy can now be used in either order, and an older copy beside a newer one confirms an older signature, as the "re-issued key" verdict advises. Paste and Open file - Adding a newer copy of a listed key was undone with "No new key was found in that, so nothing was added". The text is now judged before the box changes. A copy that says more about a listed key goes in with the note "No new key was found in that, but it adds to a key already in the list", and the card shows what it says. Text that cannot be read stays out with "Something in that could not be read as a key, so nothing was added". - The decision is in keys.ts (addToKeys), with tests. The component no longer adds, waits and undoes, so Remove or Clear pressed straight after a Paste is no longer undone. Not covered - A revocation certificate on its own is not applied; the box refuses it. The user's own key boxes still read the first private key block only. - A key block that has lost its last line is still passed over without a word, and can take the block after it for its own, as in v4.1.0. A revoked copy added behind such a block may not count. Checked - Type check, lint, formatting check, 440 of 440 tests and the build pass on Windows, including the GnuPG round trips. 32 tests are new, and each new rule has a test that fails when the rule is taken out. - GnuPG 2.4.9, given an old and a revoked copy in either order, lists the key as revoked, as the app now does. - On the production build in a Chromium browser: the footer shows v4.1.1-rc.1 as a dev build. With the old copy listed, adding the revoked copy turns the card to "revoked", marks the earlier result out of date, and Verify then says "Signature not trusted"; Encrypt refuses a file that holds both copies. The clipboard and the dropped file were fed in by script. - Need to be checked once on "dev": the Paste button with a real clipboard, the file dialogue, Firefox, Safari, a phone, the Ubuntu container and the full QA. Only the push shows the staging deploy. * v4.1.1-rc.2: read every file chosen at once, and keep private keys out The second release candidate of v4.1.1. It fixes what the full QA of rc.1 found in the ways keys reach a key box. Open file - Open file with several files chosen at once; read only the first in Edge and Chrome. The page clears the file input straight away, so that the same file can be chosen again, and the browser then empties its list of chosen files. An old and a revoked copy chosen together showed the key as good, and of three recipients only one was listed. The list is now copied before reading starts, in text-files.ts. Dropped files were not affected. This was also in v4.1.0. - All the files chosen or dropped at once may now hold 1 MB together, as one file could before. Reading every file made twenty files of 1 MB hold the page for over a minute. - When one of several files holds no PGP block, the note names it and says that none of the files was used. It said "That file", which did not say which. Characters in a name that turn text round are left out, and the name is set apart, so that the sentence reads the right way. A name that draws nothing gives "One of the files". Key boxes - A private key is kept out of a box of public keys, with the note "That holds a private key, so nothing was added. Never share a private key." That covers the private copy of a listed key, alone or with other keys, and a private key block that has lost its first or last line. In rc.1, a private copy went in, and the box then refused to work until the key was removed. - A note under a key box goes when Remove or Clear empties the box, or when the user types in it. It stayed for up to five seconds under an empty box. - When the browser refuses the Paste button while the box is folded into its card, the note says to press "Show or edit" first. Ctrl or Command + V does nothing while the box is out of sight. - Notes and errors under a box wrap a long word, so a long file name cannot push the page sideways. README - The line for keys.ts names joining copies of one key. Checked - Type check, lint, formatting check, 447 of 447 tests and the build pass on Windows. The changes in keys.ts and text-files.ts each have a test that fails without them. The changes in TextField.svelte were checked in Edge, Chrome and Firefox. - The full QA of rc.1, in nine areas, found the Open file fault and the rest of what this candidate fixes. Each area was run again on rc.2. In Edge and Chrome, every feature passes for all seven kinds of keys, and the 651 steps of the key-copy cases pass in all three boxes. Firefox, GnuPG both ways, accessibility, hostile and huge input and phone sizes show nothing worse than rc.1. - rc.1 was tried on two phones, and NotAFlightRisk, who reported the fault, reviewed rc.1's code and ran their test against it in both orders. - Not checked: Safari. rc.2 goes on two phones once it is on staging. Only the push shows the staging deploy. * Remove the second KEY_CHECK_CONFIG that the merge from main added Merging main into dev put the declaration of KEY_CHECK_CONFIG into keys.ts twice, which does not compile. keys.ts is back as it was in v4.1.1-rc.2.

  • Hadi(17 Nov 26)

    v4.1.0: a caution for other text, a version on every page, and staging The release of v4.1.0 came after three release candidates on dev. Compared with v4.0.1, Verify and Decrypt say that when the message box holds more than the message, every page shows its version, and dev has its own staging site. Verify and Decrypt: - Verify and Decrypt say when the message box holds more than the message. OpenPGP.js reads the first message in a text and skips the rest, so unsigned text above, below, or inside a signed message stood beside a green verdict. A caution now follows the verdicts: "The box holds more than the message". On Verify, the short message becomes "Signature valid, but the box holds other text". The result shows only the message's own text, as before. - The caution cannot see text written in the data's own characters among the data (letters, digits, + and /). OpenPGP.js can be made to pass over such text, and nothing tells it from data. The comment on hasOtherText in armor.ts says so. - Every page now treats a key with no key flags, as old software made them, the same way. Verify called a good signature from such a key "does not match" and Sign refused the key, while Encrypt and Decrypt used it. One setting in constants.ts now goes to every OpenPGP.js call that asks what a key may do. GnuPG uses such keys the same way. - A signature that matches a key which says it is not for signing is "not trusted", with the reason. It was "does not match", which accuses the message. Version and staging: - package.json holds the version, 4.1.0, and beside it the release candidate number (releaseCandidate). Every change that goes to dev raises the number by one. Raising the version sets it back to 1. - The app decides what to show from its address. At pgp-converter.com it shows 4.1.0. Anywhere else (the staging address, a preview, a developer's own machine) it shows the candidate in pale yellow, marked "dev build", with a notice under the top bar: "This is a test address. The released site is pgp-converter.com." A release needs no edits. - Every page shows its version and the commit it was built from in the footer. The About page names the same version. - A push to dev runs the same checks as a production deploy and deploys to https://dev--pgp-converter.netlify.app. The workflow does not sign the staging build, and an X-Robots-Tag header keeps it out of search results. The deploy check takes --staging to check that copy. Without the flag, it fails if the released site ever sends that header. - Outside the released site, the Donate page asks the wallet service nothing and shows four fake addresses in yellow, with a line that says so. Such a copy used to show "could not be loaded". The fake addresses hold characters no chain allows, so a wallet will not send to one. Site text: - The homepage sentence under the heading reads "No account, no ads, and nothing you type is sent anywhere". "Every deploy is signed" reads "Every release is signed", because the workflow signs neither staging deploys nor previews. - The About page's "Hosting & Privacy" section now has the heading "Privacy Policy". Its address (#hosting-privacy) stays the same. About also says what the host sees once the app is on a device, and which parts of a page are kept from translation. - README and About say what the idle clear leaves on the Generate page. It clears only the passphrase and keeps the new keys. Repository: - README describes the two branches, the rules that protect them, the staging address and release candidates. CONTRIBUTING asks for pull requests against dev. SECURITY says where to find the version. - The Tests workflow runs on dev as it does on main. Dependabot opens its monthly version updates against dev, so an update reaches staging before a release. Security updates still go to main. - A rule in netlify.toml sends pgp-converter.netlify.app on to pgp-converter.com, and the deploy check warns if it does not. - Submitted the domain to the browsers' HSTS preload list on 14 November 2026. The deploy check warns if the header ever stops meeting the list's rules. Checked: - Type check, lint, formatting check, 408 of 408 tests and the build pass on Windows and in an Ubuntu 24.04 container set up like the build server. The two builds are the same, file for file. - The full QA on rc.3, the code in this pull request, as the released site and in the dev look: every tool with every kind of key in Edge, Firefox and Chrome, GnuPG both ways, privacy, accessibility, offline use, and the update and upgrade from the live v4.0.1. - Tests and the staging deploy passed on dev, alongside mobile review of the staging site.

  • Hadi(14 Nov 26)

    v4.0.1: give the app manifest its file type; keep Dependabot off TypeScript 7 Two small corrections found on the first day of v4.0.0. No application code changes: the pages and tools are the same as in v4.0.0. App manifest - Netlify does not know the .webmanifest ending and sent the app manifest as a file of no particular kind (application/octet-stream). Browsers read it anyway, and the app could be installed, but that is not how a manifest is meant to be sent. A rule in netlify.toml now names its type. - The deploy check asks for the manifest after a deploy and warns if it does not arrive as one. Run against v4.0.0, it gives that warning. It only warns, because the site works either way. Dependabot - Dependabot opened a pull request for TypeScript 7 as soon as v4.0.0 landed. It cannot pass: SvelteKit, svelte-check and typescript-eslint accept TypeScript 6 only. Major versions of TypeScript are now left out. Minor and patch releases of 6 still arrive with the rest. Checked - Type check, lint, formatting check, 332 of 332 tests and the build pass on Windows and in an Ubuntu 24.04 container set up like the build server. The two builds are identical, file for file. - The browser suites and the QA tests from v4.0.0 were run again and gave the same results. - Only the deploy can show that Netlify applies the new rule. The deploy check will say so.

  • Hadi(14 Nov 26)

    v4.0.0: a redesign, sign and verify, offline use, and tighter privacy Adds digital signatures, which the app was missing (asked for in issue #2), redesigns the interface, and makes the app work offline. It is a major version because the existing interface was redesigned and the way the tools are used changed. The README's release rule now says that a significant UI/UX change counts as major, and that new pages on their own are minor. Nothing breaks: keys, messages and links from earlier versions work as before. Signing and verifying - New Sign and Verify pages. Encrypt can sign in the same step, and Decrypt can check the sender's signature. - The verdict names the key that signed, or says why the signature cannot be relied on. A failed check is never shown in green. Privacy - A new key no longer needs an email address. - The app works offline after the first visit and can be installed. Only the app's own files are kept, never anything a visitor enters. A newer version waits for an Update button. - A tool page left untouched for 15 minutes clears its keys, passphrases and messages. - The content policy refuses everything by default and no longer allows inline scripts: the build names each page's start-up script by its hash. - Stricter Referrer-Policy, Strict-Transport-Security and Permissions-Policy headers. Checking the site - The homepage shows the commit the site was built from. - The same commit builds the same files on any machine. The README gives the commands. - New /.well-known/security.txt. Using the tools - Key and message boxes have Paste and Open file buttons, and files can be dropped onto them. Blocks that lost their line breaks are put back together. - A recognised key folds into a card that names it. - An error appears under the field it is about. Things the app cannot do say so. - A result is marked "Out of date" when its inputs change, and its buttons are put away until "Use it anyway" is pressed. - Esc asks before it clears. Generate asks before an unsaved private key is lost. - Results can be downloaded. Each tool page ends with a short list of questions. - A message that would unpack to more than 16 MB is refused. A very long result shows its beginning on the page, and Copy and Download give all of it. Redesign - A plainer, darker look, with the same top bar, frame and footer on every page. On desktop, the inputs are on the left and the result on the right. - The homepage is one sentence whose words link to the tools, beside a grid of dots. - A skip link, one focus ring, and right-to-left text laid out that way. An axe-core audit of every page finds no violation. Every control can be reached with the keyboard and is never hidden under the bars, and the app stays usable in Windows high-contrast mode. - On touch screens, every button and link is at least 44px. In a short window (a phone on its side) and while a phone's keyboard is open, the top bar scrolls away. - With JavaScript switched off, every page says that the app needs it. - Link previews have a picture, and /help is a permanent redirect. Build and code - The site is files only: SvelteKit's static adapter replaces its Netlify adapter, and the wallet proxy is the only function left. The "not found" page now carries the security headers. - SvelteKit 3, Vitest 5 and Vite 8.3.8. SvelteKit's settings moved from svelte.config.js into vite.config.ts. - The app's logic is in TypeScript modules in src/lib (45, was 12), with reactive state in src/lib/stores, and the build scripts are TypeScript. - The tool pages share one frame, action bar and result panel (26 shared components, was 8), and one component draws every icon. - ESLint and Prettier are added (npm run lint, npm run format), and the code passes both. An override gives the lint tools a fixed minimatch, so npm audit reports nothing new. - Both deploy jobs now run the type check, and both workflows run the lint rules and the formatting check. Workflow actions are pinned to commits, and Dependabot is set up. - New scripts/check-bundle.ts fails the build if a page without cryptography would download OpenPGP.js. - The deploy check also covers page addresses, each page's content policy and the 404 page. - 332 tests (was 112). Checked - Type check, lint, formatting check, 332 of 332 tests and the build pass on Windows and in an Ubuntu 24.04 container set up like the build server. The two builds are identical, file for file. - In Edge, on the production build: every page and tool, offline use, and updating from one build to the next. Every kind of key the app makes was taken through every tool in Edge and in Firefox, and to GnuPG 2.4 and back. - Keys and messages made with the published v3.3.3 work in this version, and the other way round. - Not checked: Safari, a real phone, and installing the app from a browser's menu. - Only the first deploy can show that Netlify applies build/_headers, serves 404.html and redirects /help.

  • Hadi(10 Nov 26)

    v3.3.3: retry the deploy on a Netlify API failure; manual start for Tests Three small maintenance changes. No application code changes; the site that gets deployed is the same as v3.3.2. Deploy workflow - The deploy steps now try up to three times, 20 and then 40 seconds apart. The first v3.3.2 deploy failed with "Project not found" although nothing was wrong with the project: the Netlify CLI prints that whenever one of its first calls to Netlify's API fails, and running the job again fixed it. Uploading the same files twice is harmless, so a retry is safe. Each failed attempt leaves a warning on the run. Tests workflow - Add a workflow_dispatch trigger, which puts a "Run workflow" button on the workflow's page under Actions. The unit tests, type check and production build can then be run on demand, without pushing or deploying anything. The Deploy workflow still starts only on a push or a pull request. Dependencies - Remove @netlify/functions. It only supplied a type for the wallet function's custom path, which v3.3.2 removed. This drops two packages (it and @netlify/types) from the lockfile; no other entry changes. Checked - The two deploy scripts, run as GitHub runs them against a stand-in for the CLI that fails zero to three times: they stop at the first success, wait 20 and 40 seconds between attempts, and fail after the third. - Type check, 112 of 112 tests and the build pass on Windows and on an Ubuntu 24.04 container with Node 26; npm install leaves the new lockfile unchanged on both. - The wallet function is still packaged for deployment without the removed dependency.

  • Hadi(10 Nov 26)

    v3.3.2: fix the donate page (wallet function unreachable since v3.3.1) The v3.3.1 deploy went live with every file matching the signed build, but its last step failed: the wallet proxy answered 404, so the donate page could not show addresses. Everything else on the site was unaffected. Cause - Since v3.3.0, the site is deployed with `netlify deploy --no-build`, so that the files that go live are the files that were signed. In that mode the Netlify CLI packages the functions itself and gives them all the same routing priority. Netlify's build step, which the old deploys went through, ranks a project's own functions above generated ones. - The page-rendering function generated by the SvelteKit adapter claims every path ("/*") except "/.netlify/*". The wallet proxy claimed the custom path /api/wallets/pgp-converter. At equal priority, the catch-all won, so requests for the wallet addresses got the app's "not found" page. - Confirmed by running the CLI's own packager on the build: both functions are deployed, with priority 10 each under --no-build, and 0 against 10 under a Netlify build. Fix - The wallet proxy no longer declares a custom path. It is served at its default address, /.netlify/functions/wallet-proxy, which belongs to that function alone and which the page-rendering function excludes. The donate page and the deploy check ask for that address. - The reason is written down in the function's file and in the deploy workflow, so the custom path is not put back. Tests and checks - New test: the function declares no custom path. - New test: the address the donate page asks for is the default address of a function file that exists. - The deploy check's message now says the function cannot be reached, which is what a 404 proves, instead of saying it was not deployed. - README: correct the description of the two functions and where they come from. Checked - Type check: 112 of 112 tests, and the build passes on Windows and on an Ubuntu 24.04 container with Node 26. - Packaged the way the CLI does it, the two functions no longer claim any address in common. - The deploy check passes against a local copy of the build when the function answers, warns when its upstream is asleep, and fails when the function is unreachable. - The donate page loads its addresses from the new address under the production Content-Security-Policy.

  • Hadi(10 Nov 26)

    v3.3.1: fix the GnuPG test that blocked the v3.3.0 deploy v3.3.0 was never deployed: its test run failed in the GnuPG round-trip test, so the build, signing and deploy steps were skipped. This release changes no application code. It fixes the test and the workflows so that everything in v3.3.0 goes live. Cause - GitHub is moving ubuntu-latest to Ubuntu 26.04, which ships libgcrypt 1.12.0. That version has a regression in gcry_mpi_ec_curve_point (fixed in libgcrypt 1.12.1) which makes GnuPG reject every imported Curve25519 secret key, including keys GnuPG generated itself: "Bad secret key" on an ordinary import, "Bad passphrase" on first use after an import with --batch. - The keys this app generates are not at fault. Reproduced in containers: GnuPG on Ubuntu 22.04 (2.2.27) and 24.04 (2.4.4) uses them without complaint, and GnuPG on Ubuntu 26.04 (2.4.8, libgcrypt 1.12.0) rejects its own Curve25519 key in exactly the same way. Changes - GnuPG round-trip test: each key type now starts with a control, in which GnuPG has to import and decrypt with a key of that type that it generated itself. If GnuPG fails its own control, that key type is skipped, and the GitHub run shows a warning saying why. If GnuPG passes the control, a failure with the app's key fails the test as before. - The same test now warns on a build server when it is skipped because no working GnuPG was found, instead of skipping silently. It stays quiet on a developer's machine. - Fix the test leaving its temporary keyrings and a gpg-agent process behind when GnuPG was present but failed the first check. - Failure messages from that test name the installed GnuPG and libgcrypt versions. - Run the workflows on ubuntu-24.04 by name instead of ubuntu-latest, so the default key type is really checked against GnuPG instead of being skipped. To be moved to a newer image once it carries libgcrypt 1.12.1 or later. - README: add a Known Issues section with two entries. The first is for people who use GnuPG on Ubuntu 26.04: what GnuPG reports, how to check the libgcrypt version, and the way around it (generate a NIST P-256 or RSA key, which are not affected). The second explains the "preferences for unavailable algorithms" warning that GnuPG 2.4 prints when a key from this app is imported: the key works, and the warning is about SHA-3 hash preferences that OpenPGP.js writes and GnuPG 2.4 does not implement. Checked - Ubuntu 24.04 with Node 26: install, 111 of 111 tests, type check and build pass. - Ubuntu 22.04 with Node 26: 111 of 111 tests pass. - Ubuntu 26.04 with Node 26: 110 tests pass, and the Curve25519 round trip is skipped with a warning. - A runner with no GnuPG: 108 tests pass, and the three round trips are skipped with warnings. - With the v3.3.0 key format fix reverted, the round-trip test still fails, so the control does not hide a real incompatibility.

  • Hadi(10 Nov 26)

    v3.3.0: GnuPG-compatible keys, verifiable deploys, safer UI, bug fixes Fixes the findings of a full review of v3.2.2. Every bug fix has a regression test; the suite grows from 27 to 111 tests and now includes a round trip through a real GnuPG where one is installed. Keys and interoperability - Generate Curve25519 keys in the legacy encoding. The previous default produced keys that GnuPG 2.4 could not import. Existing keys are unaffected. - Show the fingerprint of a newly generated key. - Private keys without a passphrase can now be used to decrypt. - Argon2-protected keys now work in production: the CSP allows WebAssembly ('wasm-unsafe-eval'). Encrypting - Show whose key has been pasted (name, algorithm, creation date, fingerprint) before encrypting, with a warning for expired, revoked or unusable keys. - Encrypt to every key when several public keys are pasted; previously only the first was used, silently. - Refuse a private key pasted into the public key box instead of quietly using it. - Accept keys and messages that were indented or quoted ("> ") by an email client. Decrypting - Say when a message carries a digital signature that was not verified. - A message that decrypts to an empty string is no longer reported as a failure. - Error messages now name the input that is wrong (message, private key or passphrase) and distinguish a wrong key, a truncated or altered message, and a missing passphrase. - Decrypted text wraps at word boundaries instead of in the middle of words. - The "Download Both Keys" file from the generate page can be pasted straight into the private key box. Interface - After encrypting, decrypting or generating, the result is scrolled into view and takes focus. On phones, generated keys used to appear below the screen with nothing visibly changing. - Enter in a single-line field (name, email, passphrase) runs the page's action. - Passphrase fields have a Show / Hide control. - The copy and download buttons on generated keys are labelled. - Navigation keeps its text labels on small phones, where it was three look-alike icons. On the About and Donate pages, it now fits on one row on phones. - Links within the About page no longer land with the section heading hidden under the navigation bar. - Esc closes the shortcuts dialogue instead of wiping the form behind it; the dialogue takes and returns keyboard focus. - Clearing generated keys needs a second press, because they cannot be recovered. - Clear cancels work in progress; results of an operation that was still running no longer reappear. - Success and error messages are pinned below the navigation, so they are visible wherever the page is scrolled (they were off-screen on phones) and no longer shift the page. A newer message is no longer hidden early by an older message's timer. - Shortcut labels match the keyboard: Ctrl on Windows and Linux, Command on Apple devices. The hint on the main button was white on white and is now readable. - Secondary and placeholder text now meet WCAG AA contrast (4.5:1) on every surface, and a focused field shows a visible ring. - Navigation links and icon buttons have accessible names for screen readers. - Spellcheck and autocomplete are switched off on key, message and passphrase fields, so browser spelling services never see them. - The error page shows its friendly text instead of the framework's "Not Found". Donations - The wallet proxy only reads this project's wallet record, accepts GET only, forwards nothing but the four addresses, never passes upstream errors through, has a timeout, and lets the CDN cache good answers. - Addresses are checked for the expected shape before display; one bad address no longer hides the others. - Friendly error with a "Try again" button instead of raw JavaScript errors; retries stop when the visitor leaves the page. - QR codes are always dark on light, so wallet scanners can read them in dark mode. - The donation banner stays away for a day once dismissed (was 10 minutes) and no longer covers the end of the page. Build, deploy and dependencies. - Deploy with --no-build so the files that go live are the files that were attested, and add scripts/verify-deploy.mjs, which fails the workflow if the live site serves anything else or the wallet proxy function is missing. - Split the deploy workflow into preview and production jobs; only production gets signing permissions. Pin the Netlify CLI version. - Fix the pull request preview deploy command, which YAML cut off at the "#" in its message. It had been broken since the workflow was added but had never run. - Update dependencies within their current major versions and regenerate the lockfile. npm audit goes from 14 advisories (6 high) to 5 low, which require SvelteKit 3. - Move CI, the minimum Node version and the docs from Node 22 to Node 26, the current LTS. The functions' runtime is set on Netlify and is not changed by this. - CI keeps npm install rather than npm ci, which refuses to run when it judges the lockfile incomplete. Code - The encrypt, decrypt and generate pages share one module for shortcuts, the donation prompt and the stale-result guard, and one copy of the explainer styles. - Colour tokens are defined once, on the root, instead of separately for the tool pages, the homepage and the error page. Documentation - Add SECURITY.md; security reports now go through GitHub's private vulnerability reporting instead of public issues. - About page: correct the AEAD claim, add forged senders to the threat model, disclose what is kept in local and session storage, list the bundled libraries, reword the subpoena statement and two unclear passages, and show a complete attestation check instead of a bare command. - README and CONTRIBUTING updated to match.

  • H K(20 Apr 26)

    v3.2.2: Use npm install (not npm ci) in CI to sidestep the npm cross-platform optional-dependency bug Patch release. Replace `npm ci` with `npm install --no-audit --no-fund` in both deploy.yml and tests.yml. This unblocks CI without further lockfile surgery. Root cause (for the record). npm has a long-standing, well-known bug where `npm install` on one operating system does not fully capture the optional-dependency resolutions that other operating systems need, and `npm ci` fails strictly when those entries are absent. Vite 8 moved to rolldown as its bundler, which exposes per-platform native Rust bindings through optional dependencies. The lockfile generated on a Windows developer machine pinned @emnapi/core and @emnapi/runtime to 1.9.2 through the @rolldown/binding-wasm32-wasi binding (which has exact version pins). On ubuntu-latest runners with setup-node@v6, npm resolves the transitive peer-dep chain differently and tries to reify @emnapi/[email protected] and @emnapi/[email protected] before consulting the lockfile. `npm ci` then bails with "Missing from lock file". Regenerating the lockfile locally (even on Linux inside a Node 22 or Node 24 Docker container) still produced 1.9.2 pins, so the mismatch could not be resolved by lockfile regeneration alone. v3.2.1 attempted a regen and did not resolve the issue. The pragmatic workaround is to use `npm install` in CI instead of `npm ci`. `npm install` tolerates lockfile drift, re-resolves the dependency tree on the installing platform, and updates the in-memory tree without failing. `--no-audit --no-fund` suppresses unnecessary noise in the CI log. The tradeoff is slightly reduced build reproducibility, which is acceptable for a solo-maintainer project where the developer already QAs locally before pushing. - Change `npm ci` to `npm install --no-audit --no-fund` in .github/workflows/deploy.yml and .github/workflows/tests.yml - Update the flow diagram in the release walkthrough to match - No source code changes; package-lock.json is unchanged other than the version bump Bump version to 3.2.2 in package.json.

  • H K(20 Apr 26)

    v3.2.1: Fix CI pipeline (lockfile regen plus svelte-kit sync in test script) Patch release. Two small fixes that together unblock the GitHub Actions pipeline introduced in v3.2.0. Both workflows failed on their first run after the v3.2.0 push: the Deploy workflow at `npm ci`, and (once that were fixed) `npm test` would fail on a fresh CI checkout at the first test file's transform step. No source code or runtime behaviour changes. - Regenerate package-lock.json to include the Linux-only optional dependencies that were absent from the lockfile shipped in v3.2.0. The v3.2.0 lockfile was produced on a Windows developer machine after the Vite 8 upgrade; Vite 8 uses rolldown as its bundler, and rolldown compiles native Rust bindings that it exposes through per-platform optional dependencies (for example @rolldown/binding-win32-x64-msvc on Windows, @rolldown/binding-linux-x64-gnu on Linux). npm only recorded the Windows-resolved branch of the tree, so ubuntu-latest runners tripped "Missing from lock file" on @emnapi/core and @emnapi/runtime (transitive deps of the Linux binding). A fresh `npm install` on the dev machine re-evaluated the tree and wrote the cross-platform optional dependency entries, adding 8 new @emnapi/* references plus the Linux and macOS rolldown bindings - Update the `test` and `test:watch` scripts in package.json to run `svelte-kit sync` before vitest. tsconfig.json extends ./.svelte-kit/tsconfig.json, which is generated by `svelte-kit sync`; a fresh CI checkout has no .svelte-kit/ directory, so vitest's transform step would fail with "TSCONFIG_ERROR: Tsconfig not found" before the first test could run. The `check` and `build` scripts already run sync as their first step; adding it to `test` makes the test suite self-sufficient in the same way. Verified by wiping .svelte-kit/ locally and running `npm test` cold: 27/27 pass Local verification on the patched state: `npm ci` succeeds cold, `npm test` passes on a wiped-.svelte-kit/ checkout, svelte-check reports 0 errors and 0 warnings, and `npm run build` produces a clean prerendered output. Bump version to 3.2.1 in package.json.

  • H K(20 Apr 26)

    v3.2.0: Security hardening, attested builds, self-hosted fonts, and SEO This release: - ships strict security headers (CSP, COOP, and more) - makes the app fully self-contained at runtime (no third-party requests outside the donation wallet API) - adds publicly verifiable build attestation: every production deploy is built and signed by GitHub Actions using a short-lived Sigstore-issued certificate, making deployed-code tampering detectable via gh attestation verify - prerenders the public routes as static HTML with per-page unique H1s and a deduplicated SEO meta layer Security headers and CSP: - Add netlify.toml with CSP, X-Frame-Options: DENY, X-Content-Type-Options: nosniff, Referrer-Policy: strict-origin-when-cross-origin, Permissions-Policy (camera / microphone / geolocation / FLoC opt-out), and Cross-Origin-Opener-Policy - Tighten CSP to drop fonts.googleapis.com and fonts.gstatic.com; the app no longer contacts Google for anything Wallet proxy and runtime hardening: - wallet-proxy.mts: add explicit env-var presence check (replaces the API_KEY! non-null assertion), enforce path allowlist regex ^[a-zA-Z0-9_/-]+$ to prevent path injection into the upstream URL, and pass the upstream Content-Type through instead of forcing application/json - Gate console.error calls behind import.meta.env.DEV in encryption.ts, decryption.ts, keygen.ts, and donations.ts so they are dead-code-eliminated from the production bundle Self-hosted fonts: - Ship 17 woff2 files under static/fonts/ (~300 KB total) covering the latin / latin-ext / cyrillic / cyrillic-ext / greek / greek-ext / vietnamese subsets of IBM Plex Mono and Inter - Replace the @import from fonts.googleapis.com with local @font-face declarations in src/app.css, preserving unicode-range hints so browsers still lazy-load only the subsets they need - Preload /fonts/inter-latin.woff2 and /fonts/plex-mono-400-latin.woff2 in app.html so the browser can start fetching the primary subsets before parsing app.css; improves LCP now that fonts are self-hosted Build pipeline and attested releases: - Add .github/workflows/deploy.yml: runs npm ci / npm test / npm run build and deploys via npx netlify-cli. Production deploys on push to main are attested with actions/attest@v4 over build/**/*, signed through Sigstore Fulcio using GitHub's OIDC token, and recorded in Rekor's public transparency log. Pull requests get Netlify preview URLs. - Uses actions/checkout@v6 and actions/setup-node@v6 (current majors running on Node 24; the Node 20 runtime that @v4 shipped with reaches end-of-life in April 2026) and actions/attest@v4 (the canonical unified attestation action; the separate actions/attest-build-provenance and actions/attest-sbom were folded into it in v4.0.0, so new workflows use actions/attest directly) - Add .github/workflows/tests.yml: standalone validation workflow running unit tests, type check, and production build on push to main and every pull request; intended as the required status check for branch protection. Tests still run inline in deploy.yml so either workflow alone is sufficient validation. - Require repo secrets NETLIFY_AUTH_TOKEN and NETLIFY_SITE_ID for the new workflow; the Netlify dashboard's auto-build should be disabled once the first Actions-driven production deploy is confirmed healthy - Bump openpgp from 6.0.0 to 6.3.0 (patch + bugfix releases within ^6.0.0) Prerendering and performance: - Enable full-app prerendering via src/routes/+layout.ts (export const prerender = true): every route is emitted as static HTML at build time, improving TTFB / LCP and eliminating serverless cold starts for page loads SEO: - Add src/lib/components/SEO.svelte: a single component that renders title, description, canonical URL, Open Graph, and Twitter Card tags from four props (title, description, path, optional image); update every route to use it, eliminating ~15 lines of duplicated meta per page - Refactor PageHeader.svelte to render the page-specific label as the H1 (previously every route shared the same <h1>PGP Converter</h1>); update encrypt / decrypt / generate / about / donate to pass descriptive titles ("Encrypt a PGP Message", "Decrypt a PGP Message", "Generate a PGP Key Pair", "About PGP Converter", "Support PGP Converter"), giving a unique H1 per route for both relevance signals and screen-reader orientation. A small "PGP Converter" brand label is rendered above the H1 and links to the homepage, so the site identity stays visible on every page without competing with the H1 for SEO weight. - Add short "How to ..." explainer sections below the form on /encrypt, /decrypt, and /generate (~150 words each) giving Google real text to understand what each tool does. Rendered with native <details> / <summary> collapsed by default, so the tool UI stays uncluttered while the content remains in the prerendered HTML for search indexing. - Remove all meta name="keywords" tags across 6 routes; ignored by major engines since 2009, a minor negative signal in some spam heuristics - Remove FAQPage JSON-LD markup from encrypt, decrypt, generate, and about; deprecated for rich results on non-gov / health sites since August 2023, so it was dead weight - Add lastmod field (build timestamp) to every sitemap entry - Add <meta name="theme-color" content="#09090b"> in app.html for mobile browser chrome - Drop priceCurrency: "USD" from the WebApplication JSON-LD (price is 0, currency is meaningless) and set inLanguage: "en-GB" to match og:locale in app.html About page: - Add an "On this page" table of contents directly below the page header: a two-column grid of anchor links (single column under 500px) that jump to each of the nine sections, each of which now has an id attribute. Adds scroll-margin-top so anchored sections aren't crammed against the top of the viewport, and enables smooth scroll globally (reverts to instant jump under prefers-reduced-motion). - Add a financial transparency statement (no sponsors, no affiliate links, no paid placements; supported solely by optional donations) - Strengthen data retention language (no database, no accounts, no per-user logs; user data cannot be produced in response to a subpoena because it is never collected) - Add a "Prefer to verify this independently?" paragraph in Hosting & Privacy pointing users at VPN and Tor as independent ways to reduce what even the aggregate analytics could record, with honest framing that VPNs shift trust rather than remove it and do not provide anonymity on their own - Add a Threat Model section with explicit "designed to protect against" (passive eavesdropping, ciphertext tampering detected by OpenPGP v6 AEAD, server-side key theft, server-side logging, cryptanalysis of modern ciphers at current computing power, accidental plaintext transmission) and "does not protect against" (compromised deployment, endpoint compromise, metadata leakage including email subject line / headers / timestamps, lack of forward secrecy, high-value targeted adversaries) lists - Rename the old Security Considerations section to Verifying This Deployment and restructure it as a What / Why / How block ending with a concrete gh attestation verify <file> --repo polyym/pgp-converter command - Add a standalone Reporting Issues section pointing bugs, suggestions, and security disclosures at GitHub Issues - Useful Resources: replace the dated Email Self-Defense link with EFF's Surveillance Self-Defense (actively maintained) and add a link to Privacy Guides (independent recommendations for privacy tools) - Add .verify-cmd CSS rule for the command-line example Donate page: - Replace the static "Loading wallet details..." text with an animated loading state: a rotating spinner, a centred coin name that cycles through Solana / Ethereum / Bitcoin every 2 seconds (each rendered in its brand colour and fading in when it changes), and a subtitle that swaps in the "this may take a moment..." hint when Render is cold-starting. Spinner slows and coin fade animation is disabled under prefers-reduced-motion. Signals clearly that the page is working rather than frozen during the up-to-2.5-minute cold start. Navigation and header refactor: - Move the keyboard-shortcuts trigger into PageHeader as a bordered utility icon button at the top-right of the header row (keyboard SVG with a "Keyboard shortcuts (?)" tooltip, visible only on non-touch devices), replacing the previous <kbd>?</kbd> button that lived in NavBar - NavBar is simplified accordingly: the showShortcutsToggle, isTouchDevice, and onToggleShortcuts props are removed, and every caller is updated to match Dead code cleanup and minor tidies: - Remove the now-unused isTouchDevice state declaration, touch-detection logic, and onMount import on src/routes/about/+page.svelte (stranded when NavBar stopped taking an isTouchDevice prop) - Remove the isTouchDevice state and its setter line on src/routes/donate/+page.svelte (same reason; the rest of its onMount remains for the loading-coin cycle timer and wallet fetch) - Drop the export keyword on getQrColors in src/lib/donations.ts, which is only consumed inside the same file - Add a comment in constants.ts documenting that EMAIL_REGEX is intentionally permissive; PGP user IDs tolerate free-form emails, and the recipient's PGP client is the authoritative validator Version and docs: Bump version to 3.2.0 in package.json. README, updated to match the new state of the project: - Rewrite the file-structure diagram to include .github/workflows/ (deploy.yml and tests.yml), netlify.toml, static/fonts/, +layout.ts, and the SEO component - Expand the Security section with security-header, self-hosted-font, and attested-build bullets; add a "Reporting Security Issues" subsection - Update the Technology Stack section with GitHub Actions, Sigstore, and self-hosted IBM Plex Mono / Inter - Expand "Building for Production" to describe the Actions-driven pipeline and add a "Verifying a Deployed Build" subsection with a gh attestation verify example - Add a new "Releases" section documenting Semantic Versioning (major for breaking changes, minor for new features, patch for bug fixes and minor corrections, never new features) and the release practice (only major and minor versions are published as GitHub releases; patches roll into the current release for their minor line, with the existing release deleted and republished under the same tag once the patch is merged) CONTRIBUTING.md: - Add a "Reporting bugs and security issues" subsection pointing all disclosures at GitHub Issues, with a note to include reproduction steps and the affected commit - Add a one-line note that the Tests GitHub Actions workflow runs the npm test / check / build suite automatically on every pull request and blocks merges that fail

  • H K(13 Apr 26)

    v3.1.1: Fix 403 error on wallet address fetch Remove forwarded Origin header from the Netlify Function proxy. The Render API returned 403 because the proxy sent an empty Origin string, which failed the allowed-origins check. The API permits requests with no Origin header, so omitting it fixes the issue. - Remove Origin header from wallet-proxy.mts fetch call - Bump version to 3.1.1 in package.json

  • H K(13 Apr 26)

    v3.1.0: Fetch wallet addresses from API instead of hardcoding Replace static wallet addresses on the donate page with dynamic addresses fetched from the Phantom Wallet API via a Netlify Function proxy. - Add netlify/functions/wallet-proxy.mts to proxy API requests server-side (keeps API key out of client bundle) - Refactor $lib/donations.ts: split static UI config (WALLET_UI) from dynamic addresses (fetchWallets), with retry logic for Render cold starts (up to ~2.5 min) - Update donate page to call fetchWallets on mount with loading, waking, and error states - Add @netlify/functions dependency for serverless type support - Bump version to 3.1.0 in package.json - Update about page to disclose the wallet address API request - Update README: directory tree, security section, and tech stack - Verify: WALLET_API_URL and WALLET_API_KEY must be set in Netlify environment variables before deploy (no VITE_ prefix)

  • H K(13 Apr 26)

    v3.0.0: Refactor components, remove Tailwind, add tests, improve SEO, create donate page, rename Help to About, upgrade license to AGPL-3.0, and upgrade all dependencies Extract shared UI components (NavBar, ShortcutsModal, Toast, PageFooter, PageHeader) to eliminate ~700 lines of duplicated HTML and CSS across pages. Remove the unused Tailwind CSS dependency, replace raw OpenPGP.js error messages with user-friendly text, overhaul SEO across every page, create a donate page with crypto wallets and QR codes, add a post-action donation banner, rename the Help tab to About with a new hosting transparency section, widen desktop layouts, and upgrade all dependencies to their latest major versions. Refactoring: - Create NavBar, ShortcutsModal, Toast, PageFooter, and PageHeader components in src/lib/components/ with a barrel export index - Add ARIA role attribute to Toast component (role="alert" for errors, role="status" for success) for screen reader announcements - Move ~400 lines of shared CSS (variables, nav, header, toast, buttons, fields, output, footer, modal, responsive queries) into src/app.css - Rewrite encrypt, decrypt, generate, and about pages to use shared components, removing all duplicated markup and styles - Remove redundant Google Fonts import and :global(*) reset from homepage - Simplify PageFooter to a single variant-free component used by all pages except the homepage Cleanup: - Remove Tailwind CSS: delete tailwind.config.js, remove from postcss.config.js and package.json devDependencies - Remove unused @sveltejs/adapter-auto from devDependencies - Rewrite +error.svelte from Tailwind utility classes to hand-written CSS matching the project's design system - Delete static/body.css and its link in app.html to resolve the background colour conflict with +layout.svelte - Fix dead .action-btn:active selector in the global prefers-reduced-motion media query (class is scoped to generate page); move reduced-motion rules for .action-btn and .download-both-btn into the generate page's scoped styles - Remove all em dashes from user-facing text, replacing with semicolons or commas - Update favicon (pgp_key_icon.png) and move previous versions to static/archive/ Validation and error handling: - Add src/lib/errors.ts with getUserFriendlyError() mapping known OpenPGP.js error patterns to plain-language messages - Add src/lib/constants.ts with named timing constants (LOADING_DELAY_MS, SUCCESS_TOAST_MS, ERROR_TOAST_MS, COPY_FEEDBACK_MS, COPY_ERROR_MS), MIN_PASSPHRASE_LENGTH, EMAIL_REGEX, DONATION_COOLDOWN_MS, and DONATION_STORAGE_KEY - Replace all hardcoded timeout values across page components with the named constants - Add email format validation and passphrase minimum length enforcement to generateKeyPair() in keygen.ts - Update encryption.ts and decryption.ts to use getUserFriendlyError() in their catch blocks SEO: - Add static/robots.txt with sitemap reference - Add dynamic sitemap.xml server route covering all pages - Rewrite title tags across all pages with keyword-rich text in the 50-60 character range - Tighten meta descriptions to the optimal 150-155 character range - Add og:site_name and og:locale to all pages - Add Twitter card tags (twitter:card, twitter:title, twitter:description) to encrypt, decrypt, generate, about, and donate pages - Add explicit robots and googlebot meta tags in app.html with max-snippet:-1 and max-image-preview:large directives - Add author meta tag and apple-touch-icon link in app.html - Add WebApplication JSON-LD structured data with featureList to homepage - Add FAQPage JSON-LD structured data to encrypt, decrypt, generate, and about pages - Rewrite homepage keywords meta tag targeting high-intent search terms (pgp encrypt online, pgp decrypt online, pgp key generator online, etc.) - Add unique per-page keywords meta tags to encrypt, decrypt, and generate pages, each targeting page-specific search terms Help to About rename: - Rename src/routes/help/ to src/routes/about/ - Add 301 redirect from /help to /about via +page.server.ts - Update NavBar Page type: 'help' to 'about' - Rename CSS class .icon.help to .icon.about in app.css - Replace the About page icon SVG with a filled info icon for visibility - Update page title to "About PGP Converter: Privacy, Security & How PGP Works" - Add "Hosting & Privacy" section with transparency about Netlify hosting, server-side analytics (page views, unique visitors, top locations; never shared), no cookies, no client-side tracking, no third-party scripts beyond OpenPGP.js, and no personal data collection - Add FAQ JSON-LD entry for "Does PGP Converter track its users?" - Update all internal links, meta tags, canonical URL, and sitemap entry from /help to /about Donation banner: - Add DONATION_COOLDOWN_MS and DONATION_STORAGE_KEY to constants.ts - Add src/lib/donation-banner.ts with isDonationBannerAllowed() and dismissDonationBanner() using localStorage cooldown - Create DonationBanner.svelte component with slide-up animation, donate link, accessible dismiss button, and z-index: 60 to overlay all other page elements - Integrate banner into encrypt, decrypt, and generate pages; triggers only after a successful action, respects 10-minute cooldown Donate page (new): - Create src/routes/donate/+page.svelte with crypto donation UI supporting Solana, Ethereum, and Bitcoin (Taproot + Native SegWit) - Create src/lib/donations.ts with Wallet interface, WALLETS config, truncateAddress(), getQrColors(), and generateQrDataUrls() - Install qrcode and @types/qrcode dependencies for QR code generation - Use official Solana logomark SVG and Bootstrap Icons Bitcoin SVG - Add 'donate' to NavBar Page type union - Add .icon.donate style to app.css - Use shared constants (COPY_FEEDBACK_MS) and font variable (var(--mono)) - Add title, meta description, og:site_name, and Twitter card tags - Add /donate to sitemap.xml with priority 0.5 Footer: - Unify all page footers (except homepage) to a single shared PageFooter component showing GitHub, About, Donate links with "by polyym" credit linking to the GitHub profile - Update homepage footer to match the same structure with links on one row and credit below - Update global .footer CSS to flex-direction: column for two-row layout Responsive: - Widen desktop max-widths (768px+) across all pages while keeping mobile layouts unchanged: homepage 420px to 640px, encrypt/decrypt 480px to 720px, generate 560px to 800px, about/donate 640px to 820px Dependency upgrades: - Vite 6.2.0 to 8.0.8 - TypeScript 5.7.0 to 6.0.2 - @sveltejs/vite-plugin-svelte 5.0.0 to 7.0.0 - @sveltejs/adapter-netlify 5.2.0 to 6.0.4 - Vitest 3.1.0 to 4.1.4 - Svelte 5.46.0 to 5.55.3 - SvelteKit 2.49.0 to 2.57.1 - svelte-check 4.0.0 to 4.4.6 - Move Vitest test config from vite.config.ts to separate vitest.config.ts (required by Vitest 4 / Vite 8) TypeScript quality: - Replace catch (e) with catch (e: unknown) and instanceof Error narrowing in encryption.ts, decryption.ts, and keygen.ts - Replace unsafe "as string" assertions with String() conversions - Remove unsafe "as EllipticCurveName" assertion in keygen.ts by switching to the modern OpenPGP.js v6 type: 'curve25519' API for Curve25519 key generation, with nested conditionals for proper TypeScript narrowing of NIST curve values - Add readonly to immutable arrays (errorMappings, WALLETS) - Add JSDoc to all exported functions (getUserFriendlyError, generateKeyPair, downloadKey, truncateAddress, getQrColors, generateQrDataUrls) Testing: - Add Vitest with 27 unit tests across 5 test files covering encryption, decryption, key generation, error mapping, and constants - Update encryption and decryption test helpers to use the modern type: 'curve25519' API, removing the EllipticCurveName import - Add test and test:watch scripts to package.json License: - Upgrade from GPL-3.0 to AGPL-3.0-or-later to close the network loophole; replace LICENSE file with full AGPL-3.0 text - Add "license": "AGPL-3.0-or-later" to package.json - Create CONTRIBUTING.md with CLA requirement, development workflow, and code style guidelines - Add License section and CLA note to README Documentation and config: - Update homepage version badge to read dynamically from package.json - Update homepage description to "Free, ad-free, and open source since 2023" - Add "since May 2023" to about page opening paragraph - Update README: tech stack with version numbers, project structure including static/archive, Node version (v22.0.0+), test scripts, about redirect, donate and sitemap routes, and contribution checklist - Add .netlify and /coverage to .gitignore Bump version to 3.0.0 in package.json.

  • H K(04 Jan 26)

    feat: Add key generation, help documentation, security improvements and a Complete UI/UX overhaul ## Summary - **Complete UI/UX overhaul** with new dark matte black aesthetic, improved mobile responsiveness, and keyboard shortcuts - Add PGP key generation page with ECC/RSA support and key export functionality - Add a comprehensive help page explaining PGP concepts and app usage - Add security considerations section based on OpenPGP.js documentation - Fix TypeScript errors and improve accessibility - Update README with all current features ## Changes ### New Features - **Key Generation** (`/generate`): Create ECC (Curve25519, NIST P-256/384/521) or RSA (2048-4096 bit) key pairs with passphrase protection - **Key Export**: Download keys individually as `.asc` files or both as a combined `.txt` file - **Help Page** (`/help`): Documentation covering PGP concepts, app usage, security best practices, and useful resources ### Improvements - **Complete UI/UX redesign**: - New dark matte black aesthetic with elegant, minimalist styling - Mobile-first responsive design with safe area support for notched devices - Keyboard shortcuts (`⌘+Enter` to encrypt, `⌘+Shift+C` to copy, `Esc` to clear) - Sticky bottom action bar for easy access on mobile - Improved touch targets (44-52px minimum) for better mobile interaction - Toast notifications for success/error feedback - `prefers-reduced-motion` support for accessibility - Added "Generate" card to homepage and navigation across all pages - Added "Help" link to all page footers - Added security considerations section explaining web app trust model (per OpenPGP.js docs) - Fixed TypeScript errors in key generation module (OpenPGP.js v6 API compatibility) - Added aria-labels and keyboard handlers for improved accessibility - Updated SEO meta tags on all pages ## Files Changed | File | Description | |------|-------------| | `src/lib/keygen.ts` | New key generation module | | `src/routes/generate/+page.svelte` | New key generation page | | `src/routes/help/+page.svelte` | New help/documentation page | | `src/routes/+page.svelte` | Added Generate card and Help link | | `src/routes/encrypt/+page.svelte` | Added Generate nav link and Help footer link | | `src/routes/decrypt/+page.svelte` | Added Generate nav link and Help footer link | | `README.md` | Comprehensive update with all features and security info |

  • hadi49(16 May 23)

    Update README.md

  • hadi49(13 May 23)

    Updated README file and tailwind.config.js

  • hadi49(13 May 23)

    initial commit

  • H K(13 May 23)

    Initial commit

PGP Converter Reviews

More PGP Managers

About the Data: PGP Converter

Change History

Edit PGP Converter Data

You can edit PGP Converter's entry in this section of awesome-privacy.yml by submitting a PR to our GitHub repo.
Note that some of the information shown above has been aggregated from external sources, a list of these can be found data documentation.

Origin Data

Modify Data

API

You can access PGP Converter's data programmatically via our API. Simply make a GET request to:

https://api.awesome-privacy.xyz/v1/services/pgp-converter

The REST API is free, no-auth and CORS-enabled. To learn more, view the API Docs or read the API Usage Guide.

Share PGP Converter

Help your friends compare PGP Managers, and pick privacy-respecting software and services.
Share PGP Converter and Awesome Privacy with your network!