Skip to content
cosmodev ~/tools/pgp-keygen

PGP 키 생성기

Privacy & Security

브라우저에서 PGP 키 쌍(ECC 또는 RSA)을 생성합니다. 공개 키와 개인 키를 다운로드할 수 있습니다. OpenPGP.js 기반입니다.

100% 클라이언트 측 · OpenPGP.js
공개 키 — 자유롭게 공유 가능
'키 쌍 생성'을 누르면 브라우저에서 바로 OpenPGP 키 쌍을 만들 수 있어요.

비밀 키를 안전하게 보관하세요. 잃어버리면 복구할 수 없어요. 키는 전부 브라우저에서 생성되고 어디에도 전송되지 않아요 — 다운로드하지 않으면 사라져요.

(문서는 영어)

What it does

The PGP Key Generator creates OpenPGP key pairs — a public key you share with anyone who wants to send you encrypted mail or verify your signatures, and a private key you keep secret. It also produces a revocation certificate: a pre-made signature that marks the key as retired if it is ever lost, stolen, or compromised. Key generation runs 100% in your browser (via OpenPGP.js) — your private key is never transmitted, logged, or stored anywhere.

You choose between ECC (Curve25519) — the modern default: fast to generate, small keys, strong security — and the classic RSA in 2048- or 4096-bit sizes for compatibility with older OpenPGP implementations. An optional passphrase encrypts the private key at rest, so a stolen key file alone cannot be used.

How to use it

  1. Enter your Name and Email — they become the key’s user ID (Ada Lovelace <ada@example.com>).
  2. Optionally set a Passphrase. It encrypts the private key; forget it and the key is unusable. Use the eye toggle to show it.
  3. Pick an Algorithm: ECC (recommended), RSA 2048, or RSA 4096 (generation can take a few seconds).
  4. Press Generate key pair and wait for the spinner to finish.
  5. Copy or Download your public key (public-key.asc) — share this one freely.
  6. Copy or Download your private key (private-key.asc) — store it somewhere safe.
  7. Expand Revocation certificate and download it (revocation-cert.asc). Print it and store it offline for emergencies.

Examples

An ECC identity key

Input: name Ada Lovelace, email ada@example.com, algorithm ECC, no passphrase.

Output (truncated):

-----BEGIN PGP PUBLIC KEY BLOCK-----
xjMEZ9xKchYJKwYBBAHaRwBA9D4A5FSsD3vE…
=mBdA
-----END PGP PUBLIC KEY BLOCK-----

Fingerprint: 9A4C 82B1 6C9E 03F2 4721  88AB D05F 33E1 7C42 6019

An RSA-4096 key with a passphrase

Input: name Ada Lovelace, email ada@example.com, passphrase correct horse battery staple, algorithm RSA 4096 → a -----BEGIN PGP PRIVATE KEY BLOCK----- that asks for the passphrase when imported into GnuPG.

A revocation certificate

-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: This is a revocation certificate
…
-----END PGP PUBLIC KEY BLOCK-----

Good to know

  • ECC vs RSA: ECC Curve25519 keys are ~300 bytes armored and generate in milliseconds; RSA-4096 keys are several kilobytes and can take tens of seconds in a browser. Both are considered secure; pick RSA only when you must interoperate with very old OpenPGP software.
  • Revocation certificate: publish it to a keyserver (or give it to a friend) only when you want to retire the key. Anyone holding it can revoke the key — that is its power and its risk.
  • Private: runs 100% client-side. Refreshing the page without downloading discards the key permanently — by design.
  • Related tools: PGP Encrypt/Decrypt, SSH Key Generator, HashHashA one-way function that maps data of any size to a fixed-length digest. Same input, same digest; any change, different digest; not reversible. Generator, Passphrase Generator.
소스 코드14개 언어

100% 클라이언트 측 · 데이터는 브라우저 밖으로 나가지 않습니다. 도움이 되었나요? 팀원에게 공유해 보세요.