Skip to content
cosmodev ~/tools/text-encryptor

テキスト暗号化

Privacy & Security

パスワードを使って AES-256-GCM でテキストを暗号化・復号します。暗号文を安全に共有でき、パスワードを持つ人だけが読めます。

AES-256-GCM · 100% クライアント側

PBKDF2(100,000 回反復)で鍵を導出します。パスワードはこのページの外に出ず、共有リンクにも含まれません。

メッセージとパスフレーズを入力すると、暗号化します。

機能の説明

テキスト暗号化ツールは、TLS やフルディスク暗号化で使われるのと同じ認証付き暗号化標準である AES-256-GCM を使って、任意のテキストをパスワードでロックします。メッセージを貼り付けてパスワードを選ぶと、どこにでも保存でき、どんな経路(メール、チャット、チケット)でも送れるコンパクトな Base64Base64An encoding representing binary data as 64 safe ASCII characters, so it survives transport through text-only channels. It encodes — it does not encrypt. 暗号文が得られます。パスワードを知る人だけが、それを読めるテキストに戻せます。

鍵はパスワードから PBKDF2(SHA-256、100,000 回の反復、毎回新しい 16 バイトのソルト)で導出されるため、同じメッセージが同じ暗号文になることはなく、辞書攻撃は設計段階で減速されます。すべて 100% ブラウザー内のクライアント側で動作します: テキストもパスワードも、サーバーに送信されることはありません。

使い方

  1. 左上の Encrypt / Decrypt トグルでモードを選びます。
  2. 入力ボックスにテキストを入力または貼り付けます - 暗号化時は平文、復号時は Base64Base64An encoding representing binary data as 64 safe ASCII characters, so it survives transport through text-only channels. It encodes — it does not encrypt. 暗号文です。
  3. パスワードを入力します。目のボタンで表示/非表示を切り替えられます。
  4. Encrypt(または Decrypt)を押します。結果が Copy ボタン付きで出力ボックスに表示されます。
  5. 暗号化のあと、Share ciphertext link を押すと、暗号文を運ぶ URL(パスワードは決して含まれない)をコピーできます。

例

秘密を暗号化する

入力: Meet me at the airlock at 21:00、パスワード reactor-key

出力(実行のたびに変わります - 毎回新しいソルトと IV):

Q5xJ0mF3nM2c0kqTzZLBM1rsRXd6lt4+pQa2S/yVzpvxv1CVKJnOGh3tWlFcT9m+HGM=

復号して戻す

Decrypt に切り替え、Base64Base64An encoding representing binary data as 64 safe ASCII characters, so it survives transport through text-only channels. It encodes — it does not encrypt. 文字列を貼り付け、reactor-key を入力 → Meet me at the airlock at 21:00。

間違ったパスワード

同じ暗号文にパスワード wrong-key → Decryption failed - wrong password or corrupted ciphertext。

補足事項

  • 認証付き: AES-GCM は 16 バイトの認証タグを追加するため、改ざんされた暗号文はゴミに復号されるのではなく、検出されて拒否されます。
  • フォーマット: Base64Base64An encoding representing binary data as 64 safe ASCII characters, so it survives transport through text-only channels. It encodes — it does not encrypt. 出力は salt (16B) + IV (12B) + ciphertext + tag をパックします - 自己完結した文字列であり、サイドチャネルのメタデータは不要です。
  • プライベート: 100% クライアント側で動作します - 機密にも安全です。共有リンクに含まれるのは暗号文だけで、パスワードは決して含まれません。パスワードは別の経路で送ってください。
  • 関連ツール: Password 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、Base64Base64An encoding representing binary data as 64 safe ASCII characters, so it survives transport through text-only channels. It encodes — it does not encrypt. Encode / Decode。
ソースコード14 言語

100% クライアント側で実行 · データがブラウザの外へ出ることはありません。 役に立ちましたか?チームメイトに共有してください。