The key

How it works

SSHKEY makes an Ed25519, ECDSA or RSA key pair with the browser’s own cryptography. It writes the private key in OpenSSH’s format, locked with your passphrase the way ssh-keygen locks one, and the public key line with its SHA256 fingerprint. Nothing is kept once the tab closes, except the files you save.

In more detail

SSHKEY makes an SSH key pair with WebCrypto and writes it in OpenSSH's own formats: the private key file, optionally encrypted with your passphrase by bcrypt_pbkdf and AES-256 as ssh-keygen does, and the public key line for authorized_keys or GitHub, with its SHA256 fingerprint. For a machine where ssh-keygen is not to hand. Nothing leaves this tab.

How it is made, and what to know

The key is made by the browser’s own cryptography (WebCrypto’s generateKey, with the operating system’s random number generator) and it never leaves this tab. The files are in the formats ssh-keygen writes: the private key as an OpenSSH private key, and with a passphrase it is locked the way ssh-keygen locks one, with bcrypt_pbkdf and AES-256. Nothing is kept once the tab is closed.

Ed25519 is the one to choose unless a system asks for something else: short, fast and without the pitfalls of the older types. Some older servers and network devices take only RSA; 3072 bits is the least to use now. A key that guards something that matters is better still on a hardware key, which never lets the private part out at all.

Windows’ own OpenSSH reads these files as they are. PuTTY wants its .ppk format: open the private key in PuTTYgen and save it from there. To check a key someone sends you, KEYPRINT reads its fingerprint.

Questions people ask about SSHKEY

Is it safe to make an SSH key in a browser?

The key is made by the browser’s own cryptography, WebCrypto, using the operating system’s random number generator, the same source ssh-keygen uses. Nothing is sent anywhere and nothing is kept once the tab closes. The page is a static file you can read. For a key that guards something important, a hardware key is better than any software key, from here or from ssh-keygen.

Which type should I choose?

Ed25519, unless a system tells you otherwise. It is short, fast and has no weak parameters to get wrong. Some older servers and network equipment accept only RSA; use 3072 or 4096 bits there. ECDSA is offered for systems that ask for it.

Why set a passphrase?

Without one, the private key file is the key: anyone who copies it can log in as you. With one, the file is encrypted the way ssh-keygen encrypts it (bcrypt_pbkdf and AES-256 in counter mode) and is useless without the passphrase. ssh-agent or the macOS keychain can remember it so you type it once.

How do I use the key?

Save both files into ~/.ssh, make the private one readable only by you (chmod 600), and put the one line of the public key into ~/.ssh/authorized_keys on the server, or paste it into GitHub or GitLab under SSH keys. ssh-keygen -lf on the .pub file prints the same fingerprint the page shows.

Does it work with PuTTY?

PuTTY uses its own .ppk format. Open the private key in PuTTYgen (Conversions, Import key) and save it as a .ppk. Windows’ built-in OpenSSH reads the file as it is.

Who can see your file
WhoCan they see it?
YouYes
OBSCURA OSNo. Your file never reaches us.
Someone who breaks into our serversNo. Your file is not there.
Advertisers or partnersNo.
Anyone using your unlocked computer, or a harmful browser extensionYes. Keep your device and browser clean.

What it does not do

  • It does not keep the key: once the tab closes, only the files you saved have it.
  • It does not write PuTTY’s .ppk format; convert the private key in PuTTYgen.
  • It does not install the key on a server.

Load this page, turn off Wi-Fi, and run the tool. It still works.