Crypto · 91 tools · nothing uploads

X25519 key pair generate

Generate an X25519 key pair for Diffie-Hellman key exchange, on your device; the private key never leaves your browser.

X25519 key pair generate draws 32 random bytes for the private key, derives its matching public key for Diffie-Hellman exchange, and wraps both under fixed RFC 8410 PEM headers. With no options to set, every run hands back an unrelated fresh pair. The private key comes out unprotected by any passphrase, so the page output itself is the secret to guard.

Questions

What is X25519 used for?

Diffie-Hellman key exchange, deriving a shared secret between two parties, unlike Ed25519 which signs messages.

What format are the keys?

PEM, with a fixed RFC 8410 header around the raw 32-byte key.

Is the private key protected?

No, it prints in the clear with no passphrase around it.

What options can I set?

None; every run gives an unrelated fresh pair.

Can I use this from the command line?

Yes, the same code runs on the page, the CLI and MCP.

Related Crypto tools