Skip to content

Latest commit

Β 

History

55 Commits

Folders and files

Repository files navigation

Release license

πŸ—οΈ PortableKEY

EN English

The standalone multi device, multi OS, password manager

PortableKEY only requires a browser, no installation, no account, no internet. Open it, use it, carry it with you.

cover-2400x1500A

πŸš€ How to use it

PortableKEY-features-c.mp4
  1. Download PortableKEY.html.
  2. Open it with your browser (double-click).
  3. Add your entries by hand, or import a CSV/XLSX file with the Import button.
  4. Save with Save / Export: choose an encryption password, keep it yourself, and get your .pwm archive.

To reopen the archive: Import, pick the file, enter the password. That's it.

πŸ’‘ Inside the app you'll find a Guide with a downloadable import template (CSV or XLSX) ready to fill in.

πŸ˜‰βœ… Recommended use

The key objective is to have a balance between security and user experience.

By combining Firewall rules, dedicated browser and a browser's dead proxy, the recommended solution is trying to solve this dilemma:

setup-isolated-browser

⚠️ Firewall rules may differ from OS to OS.


πŸ“± Smartphone

On screens narrower than 900 px the interface switches to a phone layout, with no separate app and no extra file:

  • a top bar with the three-line button, the search and the quick New button
  • the side menu becomes a slide-in drawer (List, Due dates, Summary, Groups, archive status, Lock, Read only, language and theme); it closes by tapping outside it, and always closes on Lock
  • card view of the list, with the same actions as on the computer (copy, open website, edit)
  • Due dates, Summary and Groups adapt to the narrow width, and the light and dark themes work the same
  • the same protections apply: auto-lock, lock when the tab goes to the background, clipboard cleared after 20 seconds, no network access
699554212-15a0ef12-1985-43f4-bca8-f9cc0e3d8e28

πŸ”’ Security: no bluffs

πŸ•΅οΈ How it works?

Passwords are stored inside an AES-256 encrypted .pwm file. The master password is never stored and is intentionally forgotten after the file is created or opened .

PortableKey_Workflow

πŸ›‘οΈ Protections while the page is open

Protection Trigger What happens
Inactivity 2 minutes without activity Data released from the page. With unsaved changes: lock screen, then 10 more minutes to save (12 in total)
Tab hidden Leaving the tab for 1 second or more Session paused. Back within 20 s: the page reopens by itself; later: Resume (up to 10 minutes), then the data is released
Quick lock Esc twice, or Ctrl+Shift+L Data removed at once (lock screen if there are unsaved changes). Clipboard cleared
Read-only Header button, or the switch when opening No editing, importing or exporting until the archive is locked and reopened
User input only Always Clicks and keys generated by scripts or extensions are ignored
No network Always The CSP blocks every request: nothing is sent anywhere

πŸ—„οΈ What is stored and where?

Data In the .pwm file In the page (memory) In the browser (localStorage)
Master password Never Only while it is being used, then forgotten Never
Entries (password, email, username, URL, notes) Encrypted (AES-256-GCM) Encrypted with a session key Never
Title, group, MFA, dates Encrypted In clear (the list shows them) Never
Preferences (language, theme, table/cards) No No Yes: only these

✨ Code is open to read

PortableKEY has no obfuscated code, no build step that could hide something else. What you read is exactly what runs, line by line.

Open PortableKEY.html in Notepad and read everything it does

Typical password manager PortableKEY
Installation Yes None
Verifiable code After downloading and building the sources Right away, with a text editor
External dependencies Dozens Zero
Internet connection Often required Never
Where your data lives A service, an app, a database A file you control

πŸ“‹πŸ”“ All other security details

  • Encryption uses your browser's Web Crypto API, the same technology that protects HTTPS connections. No third-party libraries.
  • Every encrypted save generates fresh random values: saving the same archive twice produces two different files.
  • Encrypted files don't state which algorithm they use: they contain only encrypted data.
  • Encrypted CSV and XLSX exports contain a single text column that must not be edited.
  • The archive format (PWM4, since 1.2.0) is an encrypted index (title, group, MFA, dates) followed by one separately encrypted record per field of every entry (password, email, username, URL, notes), each padded to a multiple of 32 bytes so that record lengths do not reveal the length of a password, all under keys derived from your password with PBKDF2 and HKDF. A keyed HMAC over all the records is checked when the file is opened, so a modified or damaged archive is rejected. Archives from earlier versions (PWM1, PWM2) can still be opened and are upgraded the next time you save.
  • A Content Security Policy makes the browser block every network request from the page.
  • While an archive is open, password, email, username, URL and notes are kept encrypted in memory and are decrypted only to copy, edit, export or build the Summary. Opening a current-format file (PWM4) decrypts only the index: the sensitive fields stay encrypted exactly as stored in the file (copying a field decrypts only that field), and the keys are non-extractable Web Crypto keys. Archives in the older formats (PWM1/PWM2) have to be decrypted as a whole once when opened (then re-encrypted entry by entry); saving upgrades them. Saving re-encrypts one entry at a time. Title, group, MFA and dates stay in clear because the list shows them. This is a best-effort extra layer, not a guarantee: whoever controls the browser or the page can still use the same functions.
  • On computers with a mouse, the master password field is a secure field (since 1.2.0): each key you press is turned into a byte right away and kept in a byte array that is zeroed as soon as the key has been derived, so the full password never exists as text in the page (the field shows only dots and the key derivation receives the bytes directly). It accepts printable ASCII only, with no paste, eye button or generator; for accents, special symbols, phones and tablets the page uses the normal field, and a button in the password window switches between the two. Files are interchangeable between the two fields. A single typed character still exists briefly as a one-character string in the browser, and a script or extension that controls the page can still read your keystrokes.
  • Editing is on demand (since 1.2.0): opening an entry decrypts nothing. Secret fields are placeholders; Show decrypts just that field and draws it on a canvas from its bytes (never as one text string, and not as text in the page), then hides it after 20 seconds, on closing and on locking. Change opens a box for that field only; untouched fields stay encrypted as they are. Complex scripts (Arabic, Indic…) are drawn character by character without shaping.
  • Secure field for the entry password (since 1.2.0): when you type or generate a password for an entry (mouse computers), it stays in a zeroed byte buffer, is drawn on a canvas when you press the eye, and goes to encryption as bytes. ASCII only, no paste. Copying to the clipboard is the one step that still needs a string.
  • Secure/Standard switch on the entry password (new entries and Change): Secure is the default on mouse computers; the Paste button reads the clipboard as bytes (never a string), accepts one line of ASCII only and then clears the clipboard. Standard allows accents and normal paste but the password becomes text in the browser.
  • "Change" opens a dedicated window for one field (since 1.2.0): it shows only that field and its tools; Apply puts the new value on hold (the form shows a "Changed" label and Cancel change) and nothing is encrypted until you press Save entry. Empty + Apply deletes the field.
  • In unencrypted CSV and XLSX exports, values starting with =, +, - or @ get a leading apostrophe to prevent formula injection in spreadsheets (it is removed again when you re-import the file).

🌐 Compatibility

Works with any modern, up-to-date browsers, on any OS with a GUI.


βœ… Verify your download

The SHA-256 hash of each release is published here and in the release notes on GitHub.

file's Hash: d0443162cf97ed4bae9064edfa4475cea4e5fe4abc36f5082a496725d41119eb

CSP's Hash: sha256-bhKo0lEsBx+wRnzzFyKKyskdlh7DRR842602p0/iOPE=

Before using a copy of PortableKEY.html, compute its hash and compare it with the one on the release page:

  • Windows (PowerShell): Get-FileHash .\PortableKEY.html -Algorithm SHA256
  • macOS / Linux: shasum -a 256 PortableKEY.html

The two values must be identical. Take the reference hash from the release page on GitHub, not from the same place the file was handed to you: a matching hash only proves something if the hash itself comes from a trustworthy source.


πŸ«† Security Scan

This release is scanned with Virus Total services, and it's security report is fully available at the link below: https://www.virustotal.com/gui/file/d0443162cf97ed4bae9064edfa4475cea4e5fe4abc36f5082a496725d41119eb


πŸ“ Supported formats

Import Export Encryptable
.pwm archive βœ… βœ… βœ… (always)
CSV βœ… βœ… βœ…
XLSX βœ… βœ… βœ…
TXT βœ… βœ… βœ…

Import detects encrypted files on its own and asks for the password. Column headers can be in Italian or English, including those from KeePass exports.


🧭 Features summary

  • 🧳 Truly portable: one file, zero dependencies. USB stick, shared folder, external drive.
  • πŸ”Œ Works offline: no network requests, no telemetry.
  • πŸ›‘οΈ AES-256-GCM encryption: the archive is encrypted with a key derived from your password (PBKDF2-SHA256, 1,000,000 iterations), with a 12-character minimum for the encryption password.
  • 🧠 Password forgotten right after use: it isn't saved in the file or in the browser. Keeping it safe is up to you.
  • πŸ‘οΈ Readable, unencrypted code: inspect it with any text editor.
  • πŸ”„ Import/export without lock-in: CSV and XLSX in (KeePass exports supported); TXT, CSV, XLSX and .pwm archive out.
  • πŸ“Š Security summary: MFA, weak and reused passwords, email domains, expirations and password age.
  • πŸ“± Phone friendly: on narrow screens the menu becomes a slide-in drawer opened with the three-line button.
  • πŸ“… Due dates: side-menu section with expiry and password-age reports and quick edit.
  • πŸ—‚οΈ Groups: side-menu section to see, rename (or merge) and remove groups.
  • 🌍 Italian and English, with a clean interface.
  • ❓ Guide, on up-right corner there's always accessible guide in case you have any doubts.
  • πŸŒ™ Dark theme, now with Light or Dark theme switch
  • ⏱️ Auto-lock after 2 minutes of inactivity, and a full wipe of the data after 10 more minutes of lock (unsaved changes included).
  • β˜‘οΈ Multiple selection with group actions (move to group, set expiry, delete), duplicate entry, quick expiry buttons (+30/+60/+90 days, +6 months, +1 year) and a Caps Lock warning on password fields.
  • πŸ—‚οΈ Table or card view of the list, your choice remembered; cards are comfortable on phones, with sorting and filters.
  • πŸͺŸ Pause when you leave the tab (after 1 second): data hidden, Resume screen, 10 minutes from the switch to come back (even with no unsaved changes); then the data is released. Adds to the inactivity lock (2 + 10 minutes). Lists and summary are emptied from the page while locked.
  • ⚠️ Warning if the page is opened from a website instead of from a local file.
  • πŸ”” Unsaved-changes indicator and a warning 15 seconds before the auto-lock, with a Save now button.
  • πŸ”‘ Help with strong passwords: a strength indicator and a generator of random 8-word passphrases (about 80 bits).
  • 🧱 Everything that is not shown in the list stays encrypted in memory while the archive is open (best effort): password, email, username, URL and notes. Only title, group, MFA and dates are kept in clear.
  • 🧯 Content Security Policy: the browser itself blocks every network request from the page.

❓ Quick questions

Where are my passwords stored? Only where you save them, in the file you export. While you use it they stay in the page's memory and disappear when you close it.

Can I run it from a USB stick? Yes, that's what it's for. Remember to export the updated archive before closing.

Does it autofill forms or integrate with the browser? No, on purpose. Fewer features, smaller attack surface, more code you can read in one evening.

Does it open KeePass .kdbx files? No. You can export from KeePass to CSV and import that file into PortableKEY.

Can I open archives created by older versions? Yes. Older .pwm files (PWM1 with 300,000 iterations, PWM2) still open, and are saved in the new format (PWM4) the next time you save. The opposite doesn't work: older copies of the app can't read new archives.

What does the password strength indicator tell me? It is a rough estimate in bits, not a guarantee. For the encryption password the best option is a random passphrase: the Generate phrase button creates 8 words (about 80 bits). Write it down: it is never stored.


🀝 Contributing

The project is a single file: reading it, understanding it and improving it is within everyone's reach.

  • πŸ› Found a bug or a security issue? Open an issue.
  • πŸ’‘ Have an idea? Propose it with a pull request.
  • 🌍 Want to add a language? Just add a new entry to the translations dictionary.

πŸ“„ License

PortableKEY Β© 2026 is licensed under Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International CC BY NC ND

In short, you may copy and redistribute PortableKEY in any medium or format, unmodified, for non-commercial purposes only, as long as you give appropriate credit and include a link to the license.

BY – credit must be given to the creator.

NC – only non-commercial use is permitted.

ND – no derivatives or adaptations may be shared.

See the LICENSE file.


PortableKEY
One file. Your code. Your keys. πŸ”‘