About Portable Secret
Portable Secret is a lightweight technique, more of a demonstrated hack than a maintained product, for sharing encrypted content without requiring the recipient to install any special software. It was created to let its author securely exchange documents by email with a family member who could not reasonably be expected to learn PGP, age, or a similar encryption tool.
A 'Portable Secret' is simply an HTML file containing an encrypted payload and a small amount of JavaScript that calls into the browser's built-in Web Cryptography API. Anyone with a reasonably modern browser can open the file and, if they know the password, decrypt the secret inside, even completely offline, since the file has no external dependencies and can be carried on something like a USB drive.
The author describes use cases such as storing sensitive private keys or two-factor recovery codes, and keeping accessible copies of important documents like a passport photo that remain available even if all trusted devices are lost. The project is explicitly presented as a neat trick rather than a polished product, with the source code and creator tool provided mainly as a demonstration, and a more full-featured product called PrivacyProtect.dev was later built on the same idea by someone else. It is written in HTML and JavaScript and released under the MIT license.
Key features
- Self-contained encrypted HTML files
- Decryptable offline in any modern browser
- No external dependencies or special software needed
- Suitable for storing recovery codes and sensitive documents
- Based on the Web Cryptography API
Good fit for
- →Sending encrypted documents to non-technical recipients
- →Storing sensitive secrets accessible from any device
- Tags
- encryption
- privacy
- cryptography
- javascript
- secrets-management
- offline
- web-cryptography
Portable Secret: questions and answers
- What is Portable Secret used for?
- Portable Secret is a free, MIT-licensed cryptography trick that packages an encrypted message or file into a single self-contained HTML file, decryptable in any modern browser. It is a good fit for sending encrypted documents to non-technical recipients and storing sensitive secrets accessible from any device.
- Is Portable Secret open source?
- Yes. Portable Secret is open source under the MIT licence. Its source code is on GitHub at mprimi/portable-secret.
- Is Portable Secret free?
- Yes. Portable Secret is open source, so the software itself is free to use.
- What are some alternatives to Portable Secret?
- Similar open-source tools in the Security category include uBlock Origin, Cryptomator and VeraCrypt. SaaS products in the same category include ADM Guard, AgentScan and AIBlurWeb.
- Is Portable Secret actively maintained?
- The most recent commit to Portable Secret was on 21 July 2024. The project has 1.7k stars on GitHub.
Open-source alternatives to Portable Secret
See alluBlock Origin
Security
uBlock Origin - An efficient blocker for Chromium and Firefox. Fast and lean.
GPL-3.0★ 68k
Cryptomator
Security
Cryptomator for Windows, macOS, and Linux: Secure client-side encryption for your cloud st
GPL-3.0vs Tresorit★ 16k
VeraCrypt
Security
Disk encryption with strong security based on TrueCrypt
OSS★ 12k
OpenBao
Security
OpenBao is a software solution to manage, store, and distribute sensitive data including s
MPL-2.0vs AWS Secrets Manager★ 8.3kCryptgeon
Security
cryptgeon is a secure, open source note / file sharing service inspired by PrivNote writte
MIT★ 1.5kemail2phonenumber
Security
A OSINT tool to obtain a target's phone number just by having his email address
MIT★ 2.8k
SaaS alternatives to Portable Secret
See all
ADM Guard
Security
Compliance and audit software that keeps tamper-evident records of automated decision-making systems
SaaS
AgentScan
Security
Scans AI coding agent skills for security issues and distributes reviewed workflows for Claude Code and others
SaaS
AIBlurWeb
Security
Chrome extension that detects and blurs sensitive data on screen during screen sharing and recording
SaaS
Akeyless
Security
SaaS secrets management and machine identity platform for apps and pipelines
SaaS
Aura
Security
Consumer identity theft protection bundling credit monitoring, VPN and antivirus
SaaS
AWS Secrets Manager
Security
Managed service to store, rotate and retrieve database credentials and API keys
SaaS
