Hand off a key or a secret as a .pem file, packaged and encrypted entirely in your browser.
Paste a private key or any sensitive text and PEM Pocket turns it into a downloadable .pem on your own device. By default it is sealed with AES-256-GCM under a shared password; nothing is ever uploaded.


Credentials still travel by chat message and email attachment, usually in plain text. PEM Pocket is a small, deliberate alternative: paste the secret, choose a password, and download a single .pem file to send through whatever channel you already use. The password goes through a different one.
Everything happens in the page. There is no API, database or analytics, and the tool makes no network calls; encryption runs on WebCrypto in the browser, so the secret never leaves the device that typed it. The recipient opens the file in the same tool's second tab with the same password.
It is also honest about what a .pem is. A complete RSA, EC or OpenSSH private key can be kept readable and byte-for-byte usable; arbitrary text gets a plain PEM-style envelope; and the encrypted package is labelled clearly as a transport container, not a key OpenSSH or OpenSSL can load directly.
One field for a key, a token or a note. Password protection is on before you type anything.
The status line reads what you pasted. A shared password of at least 12 characters turns it into an encrypted .pem, ready to download.
PEM Pocket packages a pasted key or secret into a .pem file inside the browser. It has no backend, database or analytics, and the page is not allowed to make network requests.
Protection is switched on before you type, turning any pasted text into an ENCRYPTED PEM POCKET file.
With protection off, a complete PEM block such as an RSA, EC or OpenSSH private key is saved byte for byte, so other tools can still use it.
With protection off, any other text is base64-wrapped in a PEM POCKET TEXT block, and the page says plainly that it is not encrypted.
A second tab takes a protected block and the shared password, then downloads the recovered key, or the text in a readable envelope, on the same device.
Standard browser cryptography only; nothing written from scratch.
Content is encrypted with the browser's built-in WebCrypto AES-GCM, which also detects any change to the file.
The password is stretched into the key with PBKDF2 and SHA-256 at 600,000 iterations to slow down guessing.
A random 16-byte salt is generated for each file, so the same password never gives the same key twice.
A random 12-byte IV is generated for each file before encrypting.
The salt, IV, settings and ciphertext sit in a labelled, versioned JSON package inside the PEM armour.
A wrong password and a damaged file give the same message, so a failed attempt reveals nothing about which it was.
A status line updates as you paste, saying whether it sees a private key, another PEM block or plain text.
A PEM public key or an OpenSSH ssh-rsa, ssh-ed25519 or ECDSA line is flagged so nobody mistakes it for a private key.
A block that starts with BEGIN but is cut off is refused until the whole block is pasted.
A PEM block is only accepted when its END label matches its BEGIN label exactly.
A detected private key suggests the name private-key, unless you have already typed your own.
Unsafe characters are stripped from the name and a single .pem extension is always added.
Protected files need a shared password of at least 12 characters.
The password field is emptied as soon as a file has been sealed or opened.
Encryption only runs in a secure browser context, and the page explains this rather than failing silently.
Both password fields have a Show button for checking what was typed.
After sealing, the page reminds you to send the password through a different channel from the file.
The page states that a protected file is a transport container that OpenSSH and OpenSSL cannot load directly.
The server only hands out three static files.
Packaging, encryption and decryption all run in the browser, and files are saved straight to the device.
The content security policy sets connect-src to none, so the page cannot send data anywhere even by mistake.
Framing is refused by policy and header, so the tool cannot be embedded in another site.
Referrers are suppressed, and camera, microphone, location and payment features are turned off.
The web server runs read-only with privilege escalation disabled and restarts on its own after a reboot.
It is served over TLS 1.2 or 1.3 on a private network, with a health endpoint for monitoring.
Create a PEM and Open a protected PEM sit in one panel as accessible tabs.
Result and error messages are announced to screen readers as they appear.
Tabs, buttons, fields and the protection switch all show a clear focus ring.
The layout narrows to one column on small screens, with the same two tabs and controls.