ハッシュ/暗号
PGP/GPG Encrypt/Decrypt
PGP鍵の生成、メッセージの暗号化・復号(OpenPGP、RFC 4880)をopenpgp.jsライブラリで実行。
PGP/OpenPGP (RFC 4880) uses a key pair — public and private — for end-to-end message encryption and digital signatures. This tool generates keys and encrypts/decrypts messages using the openpgp.js library, right in your browser.
How to use it
- Generate keys: provide a name, email, and passphrase to get a public/private key pair ready to use.
- Encrypt: encrypt a message with the recipient's public key — only whoever holds the matching private key can decrypt it.
- Decrypt: paste an encrypted message along with your private key and passphrase to read the original text.
Common uses
- End-to-end encrypting sensitive correspondence when the recipient has their own PGP key.
- Verifying a digital signature on a message or file to confirm the sender's authenticity.
- Generating a test key pair to learn or set up a PGP workflow without installing GnuPG.
Things to keep in mind
A public key can be shared freely — it's exactly what others need to encrypt a message for you; a private key must never be shared with anyone.
Losing a private key with no backup means old messages can never be decrypted again — that's why creating a revocation certificate right after generating a key is worth doing immediately.
よくある質問
PGPでの暗号化と署名の違いは何ですか?
暗号化はメッセージを、意図した受信者の秘密鍵だけが読めるように、その公開鍵を使ってスクランブルします。署名はその逆で、あなたの秘密鍵を使ってメッセージがあなたから来たもので改ざんされていないことを証明し、あなたの公開鍵を持つ誰もが検証できます。
このツールに秘密鍵を信頼して預ける必要がありますか?
鍵生成、暗号化、復号、署名はすべてブラウザ内で完結します — 秘密鍵がサーバーに送信されることはありません。とはいえ、ここに貼り付ける秘密鍵は他の場所と同じように慎重に扱ってください。
ここでのRSA鍵とECC鍵の違いは何ですか?
RSAはより古く、広くサポートされている選択肢で、同等のセキュリティには通常より長い鍵(2048ビット以上)が必要です。ECC(楕円曲線)ははるかに短い鍵で同様のセキュリティを達成し高速ですが、古いソフトウェアでの互換性はやや劣ります。
Web of Trustとは何で、X.509とどう違うのですか?
信頼を集中管理する認証局が保証するX.509とは異なり、PGPは「信頼の輪(Web of Trust)」に依存します。ユーザーは、鍵の所属を個人的に確認したうえで互いの公開鍵に自分で署名します。見知らぬ鍵への信頼は、すでに信頼している人々の署名の連鎖を通じて生まれます。
秘密鍵をなくしてしまったらどうなりますか?
秘密鍵がなければ、自分宛てに暗号化されたメッセージを復号することも、自分の名前で署名することもできません——バックアップがなければ鍵を復元することは不可能です。だからこそ、鍵を生成した直後に失効証明書(revocation certificate)を作成しておくことが重要な習慣なのです。