Skip to content
OddsockLocal
Local
Source text
AlgorithmEd25519
Key formatPEM
RSA key size3072
ReadyRuns in this browser. Nothing is uploaded.

How to use

  1. Choose Ed25519 unless you were told ECDSA or RSA.
  2. Choose PEM, OpenSSH, or JWK to match the consumer.
  3. Copy the private key into a protected file. Copy the public key to the service.
  4. Close the tab once the private key is stored. This page will not have it later.

What is Key pair generator?

A public key is the half you can hand out. A private key is the half that signs, and losing it or leaking it are both permanent. This page generates a pair in the browser: Ed25519, ECDSA on P-256, or RSA at 2048, 3072, or 4096 bits. Ed25519 is the opening choice and the one to pick unless a service named another algorithm. The format can be PEM (a PUBLIC KEY block and a PRIVATE KEY block), OpenSSH, or JWK.

Read more

RSA at 3072 is the opening size when you do choose RSA. Larger is slower to generate and only sometimes required by a policy. ECDSA here is P-256. The SSH page is the same algorithms aimed at id_ed25519 files. The RSA page is PEM only, so you are not tempted to export an RSA pair as a JWK by accident.

The private key is on screen after generation. The page does not store it and does not upload it. Copy it into a file with permissions you understand, and do not paste it into chat. The example in any guide, including a truncated sample from a test run, is not a key you should use.

Use cases

  • A developer makes an Ed25519 PEM pair for a service that asked for PKCS#8.
  • A CI system needs a throwaway key for a local test, generated and discarded.
  • An integration wants the same pair as JWK for a JWT signer.
  • A policy that still says RSA gets a 3072-bit pair rather than a 1024-bit antique.
  • Someone compares OpenSSH output with the dedicated SSH page and sees the same kind of public line.

An Ed25519 pair in PEM

Algorithm Ed25519, format PEM.

A JSON object with a public key that begins -----BEGIN PUBLIC KEY----- and a private key that begins -----BEGIN PRIVATE KEY-----. A new run is a new pair. Do not reuse a key you found written down.

Why use Oddsock

Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.

Related tools

Using this tool

Ed25519, unless the other system names RSA or ECDSA. It is smaller and the usual choice for new SSH and signing keys.