Verify this site
OnlinePGP asks you to trust a web page with your keys and messages. You should not have to take that on faith. This page explains how the site works and gives you the tools to check, by yourself, that the code your browser runs is the same code that is published on GitHub.
Everything runs in your browser
OnlinePGP is a static website. There is no application server, no database and no API that receives your data. Key generation, encryption, decryption, signing and verification run locally with OpenPGP.js 6.3.3 and the Web Crypto API of your browser.
- Private keys, passphrases, messages and files never leave your device.
- After your first visit the PGP tools are saved for offline use, so they keep working without any connection. You can even turn off your network before you paste a private key.
- The site does load Google Analytics and Google AdSense to fund hosting. These scripts never receive the content of the tools. See the Privacy Policy.
Open source under the MIT license
The full source of the site lives in the public repository github.com/Seka35/onlinePGP, released under the MIT license. The folder onlinepgp/ is deployed as is to the web server on every push to the main branch: no bundler, no minifier and no build step changes the files in between. That is what makes the checks below possible.
Published hashes of the key files
The table lists every script and stylesheet the site serves, plus the service worker, the web app manifest, security.txt and the OnlinePGP public key. The SHA-256 and SRI values are generated from the repository by scripts/build-integrity.mjs, and the same file can be downloaded as hashes.json.
Downloads each file from this site and from GitHub, then compares their SHA-256 hashes in your browser.
| File | Size | SHA-256 | SRI (sha384) | Live check |
|---|---|---|---|---|
/asset/consent.js |
1,737 bytes | 6c63afeede018c50a1b5ba9beac86edf44e0223bf18514170b07e0ec3780b0d7 | sha384-XLVhzsDWm/XCQeF2B2FjlKEqroA1KqcI5DYgA3k6xdtnBOA1ROau7+tEU0pFH4Yz | Not checked |
/asset/file-dropzone.js |
5,190 bytes | 727b1d4b8f8c44aeef7902d18b1410d398b563b894604776394f06bd2a2a1883 | sha384-YZZ6eaKKwr79ccKWwuw1fvnVxRBJYOopetNg0qNZyStCbd2uqhSbYvOmGHKQjjnF | Not checked |
/asset/newsletter.js |
3,313 bytes | 1ce50d62b3c3bd9203472493deff0c8fbb73a1de1eeb29bcdca572ebb8d6d0cd | sha384-NbIii69WgVf/ytqbEbcFV3nRtWlMEUl5oxJrjRRFNri+k3l3eURto5USpPW/YgI3 | Not checked |
/asset/openpgp.min.js |
395,214 bytes | 5c2c44a97f16aee9ff1b7bfdc483b63a3139ad830d81ec5f61c1c0c0e5618ba5 | sha384-jKDuyUFRJ2AxmzMjqWxr0OAs3+6BqnZdQLftfRT1KEXtBjeUgg1rX8rI0bvd/z9f | Not checked |
/asset/pwa.js |
3,472 bytes | 8a8cbd0ba7ceb3d0fb8f3d56feacba4466f503fe8b6eb32529d86d8bf0988823 | sha384-XHC6o1nCjBdOfrqv6OunqEooBor3i7VLYKDyYPJMA9uFMt8O009ZK6yvI8suBFO0 | Not checked |
/asset/script.js |
18,599 bytes | fbb53ccae3e1bd33bb3641e1b24e4475182abef469d3e183a9477eeab36a8953 | sha384-pH2JLsGZ/PpYz1sGwg+UaGjEZ+znD6eWdBXNKBhOnAbvaplGvPt/BJhR6pZxH7sy | Not checked |
/asset/styles.css |
81,540 bytes | 27b7e99660377552bad0cff1670cf357d14d1c6571b6a969a55d9c52ff55c8a1 | sha384-ii29j7uj2di//BSe8NJsfI8Alt8sixKz2GsoOfuY6UTZCet/i7sZ/9nPnuTfXQEI | Not checked |
/asset/tools/base64.js |
3,945 bytes | f87284bb54007608815a93154fa8eac2cec25114ff3e19d138fca7c72d88f5e5 | sha384-g/RE6snCXk8b9y+m56uaMLKZyfVwhYBfP31Yd2ifsR7k54XtgnyvMUhsEkPCPuUK | Not checked |
/asset/tools/fake-address-generator.js |
3,976 bytes | 8f8070fefb02d987d6db0583d9a1172441720430c0262c2f4d9c2ed78320e28b | sha384-NSa+QYNMP7NgDQm5wfehuCsqZHthyMOI5+bCAYWX/kn0w8cXhuQsdU9aKp27LoTV | Not checked |
/asset/tools/fake-name-generator.js |
4,624 bytes | dc7a9edc8092acdd6fcf725e804a63a35f448edc6621c51c18e328abe9b6b399 | sha384-WiKx/eE3pdLdw4r43faFPr1tDfp/S+tl5T/nSnXAP+gpQJXB1fpOOnSKoelL3Xu8 | Not checked |
/asset/tools/hash-generator.js |
5,337 bytes | 82a20e29ee745a0711ffd3e4068336709a34007a83403097e0ec33a4a0bc7cc0 | sha384-TX5ncHxMNAPotMaDOqJ3RDUTGodpyxNPYoBLo7aHNai31OhF2fFD6koa4+VRphr1 | Not checked |
/asset/tools/password-generator.js |
7,704 bytes | d9a0bb9ec411df647b2bfa19a7bcec0d17f0b7205a16a4b36be37a4b03b82c3f | sha384-0yDNc5H8ZsbKKzMOnqtC5zU6YR0QNnvl2ywkpPb5pB8VW4drWxgh7NVjXHVzD+r6 | Not checked |
/asset/tools/pgp-file-encryption.js |
4,205 bytes | 1429e994a366953e6d60ddfaa101ee04dc1dd88770a1e50aad7f95806d721af8 | sha384-08iQe04Q00se1yXBNH608YSakqvJ8/TgGU7FJPeowfbYHp5XwFPho2bjSENc+X5V | Not checked |
/asset/tools/pgp-key-revocation-certificate.js |
5,461 bytes | 402f3cf7e9fdc61c736e6494a46b2968423cec398e84027763c83b2ed217756a | sha384-MeLfTZun3jzvjrwvGutaCmFMtWCUPtFgMHDYb0SHixHNVuJgcI12wm7a5aZ+bU5z | Not checked |
/asset/tools/pgp-key-viewer.js |
4,265 bytes | bdc1a75eb0dd28c20a8e18cf7ba78f862c40a047b72b976850b3dd4d0b394020 | sha384-jmIhzGS+//a+QYsWqqZI1HN780Ew/w8dRvDnh/Ys+s2tJFkN1SWo4yOMWNrSPN3P | Not checked |
/asset/tools/pgp-qr-code.js |
16,768 bytes | 08cb419d7fb0a85da7213387353729e6a7fc18dac1502401f22363610e4735ad | sha384-ckluwzyWAqKxPUhFCg1YHDI4/9qM1saJW0A9hW4nzKGNIJZE6A3kFbJi7JVhZP0o | Not checked |
/asset/tools/tax-id-generator.js |
58,996 bytes | 7dcfe1904d05588be3d86cf11ea791ce56487fd6b40769dee5c999bfe1736de0 | sha384-shzH3G0x2CURckYKLbgbdZUQUljqbZNQFhIhX/rxtbgUzf7mwiM16+bmkOYDhe9f | Not checked |
/asset/tools/test-credit-card-generator.js |
12,753 bytes | 18e0a94ff14a8fcf11c3a3ec01957cc0956985b7c670084ec9e570d753f0e3c6 | sha384-ROKdlTcykPSNw9kIANjXmeJ3cky/v8zSezvB3GEJ+l8GjiAv6IHz5C/xFPJgme6x | Not checked |
/asset/tools/test-data-locales.js |
48,726 bytes | 1c670e1be0843b7e20b34f8440eff261c7bbdf7778d8fdc67d379f8e76c86ffc | sha384-eIBJusRexvbadKUTGNfPyuxFEyFNDsMRndK5qP54XLQ0gE3y3QgcTq9bptIoAg04 | Not checked |
/asset/tools/verify-signature.js |
2,842 bytes | 09aae0d7b13e082d6a018ca001f5ba390c66ec67fb1b26d74be1feb9e14a4189 | sha384-omKkbO0xwxtXw5QTsu5UBGyBAJ/5/d4CcIpvWxok9DXCZIAveqUnt/gBSTNFLVqS | Not checked |
/asset/vendor/qrcode-generator.js |
56,694 bytes | 79ec86f82856005b1c887905cfccfcfbec3821ca61c7fd5a952faa5f778f791c | sha384-e9EFD6BGC90bkW9aDV5xbbBfzwN7G8YImHao2lfLVKV/hPB0E0go+H3I64h7oHtA | Not checked |
/asset/verify-site.js |
3,977 bytes | 3c227c8240898dd7915ab0a06ccbb3c8cb26f2e9679361079f30107bf63b9e24 | sha384-zIVh2ItbU5cGh8qYLJHKSTDCizayT/+XC8JITkld5D0dNFvJ1qfOh39TEnDGEdy3 | Not checked |
/sw.js |
7,384 bytes | d66aeb3690845af23c12a0e75b19df2a9618fa0abac748159f1a6577187f65ef | sha384-KyqF6ldjfmhrARxk5+EyCdC6uUdoJjmvsVmbSiUHwKfd0M7ylJXlsXCRqcOpp8z8 | Not checked |
/manifest.webmanifest |
1,439 bytes | 73c9481ad49f4de3c8371a94b3846b0c189d7951466245d006b11c284c1bfcb1 | sha384-fnr4iyXav+y1G3LMx1XpdYB9wImpqOahJHpSkmCW7PlUOOUnunN9ZoxdePMvXiSz | Not checked |
/.well-known/security.txt |
1,144 bytes | b875aef6c843924592c92fde1fbcfca2e2d32e5aee50d67687162d1d10d94968 | sha384-u404rOXBbvSugOgxkZB9FTZ1sbifQAh4vJlIFlhfU5o67+kGzY4bwM0MOZZKoSbV | Not checked |
/pgp-key.asc |
1,934 bytes | f5b26e9274ada71f0e7e6752916cf846c97b65654460e943c8e2253be3939296 | sha384-iIey/g6WlBs45H9w2Xu67BV/bqq3B3f49eoPklfNOM6wAhQasdwg3EXQ8PpXkpu9 | Not checked |
The button fetches the live copy with a unique ?verify= parameter, so neither the offline cache of your browser nor the CDN can answer with an old copy. The GitHub copy comes from raw.githubusercontent.com, which is independent from this server. If the main branch changed after the last deploy, the GitHub column can briefly differ while the live file still matches this table.
Check the files yourself with curl
You do not need to trust the button above either. Run these commands on any machine and compare the result with the table, or with the same file on GitHub:
# Hash of the live OpenPGP.js library
curl -s "https://onlinepgp.com/asset/openpgp.min.js?verify=$RANDOM" | sha256sum
# Hash of the same file in the GitHub repository
curl -s https://raw.githubusercontent.com/Seka35/onlinePGP/main/onlinepgp/asset/openpgp.min.js | sha256sum
# Compare every published file in one go
curl -s https://onlinepgp.com/verify-this-site/hashes.json \
| python3 -c 'import json,sys;[print(f["sha256"]+" "+f["path"]) for f in json.load(sys.stdin)["files"]]'
On macOS, replace sha256sum with shasum -a 256. Developers can also clone the repository and run node scripts/build-integrity.mjs with the live check option to compare every file at once.
Subresource Integrity
Every script and stylesheet served from onlinepgp.com is loaded with an integrity attribute. Your browser computes the hash of the file it receives and refuses to run it if it differs from the value written in the page. A tampered copy of openpgp.min.js or script.js would simply not execute. You can see these attributes with View Source on any page.
Third party scripts from Google (Analytics, AdSense) and Google Fonts change without notice and cannot carry a fixed integrity hash. They run in the page but they are never given access to the tool content.
Verify the signed security.txt
The file /.well-known/security.txt follows RFC 9116 and is clear-signed with the OnlinePGP key. Its fingerprint is:
27EB F294 F077 65D2 6FB2 232E 7BC4 8481 08DB 6435
curl -sO https://onlinepgp.com/pgp-key.asc
curl -sO https://onlinepgp.com/.well-known/security.txt
gpg --import pgp-key.asc
gpg --verify security.txt
GnuPG should report a good signature from OnlinePGP <contact@onlinepgp.com> with the fingerprint above. Cross check the key on keys.openpgp.org and on GitHub. You can also paste both files into our own PGP Signature Verifier.
Content Security Policy and headers
The site is served over HTTPS only and the server sends content-security-policy: upgrade-insecure-requests, which upgrades any stray HTTP request to HTTPS. A strict script policy is not set today because Google Analytics, AdSense and the consent defaults need inline scripts and a long list of Google domains, and a policy that allows all of that would add little real protection. Subresource Integrity on our own files, the open source code and the checks on this page are the stronger guarantees. You can inspect the headers yourself:
curl -sI https://onlinepgp.com/
Report a vulnerability
If you find a security issue, write to contact@onlinepgp.com, ideally encrypted to the OnlinePGP public key, or use the contact page. Please give us a reasonable time to fix the problem before you publish it. Reports that lead to a fix are credited on this page if you wish.