ヴィジュネル暗号とは?

無料のオンライン ヴィジュネル暗号ツール。ヴィジュネル暗号表を使用してテキストを暗号化または復号。

The Vigenere cipher represents a significant advancement over simple substitution ciphers like Caesar. Instead of shifting every letter by the same amount, the Vigenere cipher uses a keyword to determine a different shift for each letter. This makes it a polyalphabetic cipher — the same plaintext letter can encrypt to different ciphertext letters depending on its position, defeating simple frequency analysis.

The encryption works by aligning the keyword repeatedly under the plaintext. Each keyword letter determines the Caesar shift for the corresponding plaintext letter (A=0, B=1, ..., Z=25). With a keyword of length n, the effective key space is 26^n. A 5-letter keyword creates 26^5 or roughly 12 million possible keys, making brute-force impractical.

The tool provides encryption and decryption with a keyword, autokey mode, character-by-character key visualization, and Index of Coincidence (IC) statistical analysis. The autokey mode extends the keyword using the plaintext itself, eliminating the repeating pattern that makes standard Vigenere vulnerable to the Kasiski examination. The key visualization shows exactly how each keyword letter maps to each plaintext position.

The Index of Coincidence panel gives statistical insight into the ciphertext. For English plaintext, IC is approximately 0.0667. For random text, IC is approximately 0.0385. If Vigenere-encrypted text shows IC near 0.0385, the cipher is working correctly. A value above 0.045 suggests the keyword may be short enough to crack.

ヴィジュネル暗号の実際の使用例

キーワードでメッセージを暗号化する

学生がキーワード「SECRET」で「ATTACK AT DAWN」を暗号化します。平文の「A」は、どのキーワード文字と重なるかによって、それぞれ異なる文字に暗号化されます。鍵のビジュアライゼーションが文字ごとの対応を示します。IC値が多表式の振る舞いを裏付けます。同じキーワードで復号すると元のメッセージが戻ります。

自動鍵モードでより強力な暗号化を行う

暗号愛好家がメッセージを準備し、自動鍵モードを有効にします。キーワード「KEY」が使われた後、平文が残りの位置の鍵を延長します。鍵のビジュアライゼーションに、まずキーワード文字が表示され、続いて平文文字が引き継ぐ様子が映ります。生成された暗号文には反復パターンが見られません。

一致指数(IC)で暗号文を分析する

CTFプレイヤーが暗号文を受け取り、ツールに通します。IC計算で0.042と表示され、ヴィジュネル暗号と一致します。暗号文中の繰り返し配列を分析して、さまざまなキーワード長を試します。ICは復号が成功したことを確認する手助けになります。

なぜヴィジュネル暗号を使うのか?

  • 双方向:暗号化↔復号化
  • カスタムキーワード
  • アルファベットのみ変換
  • 大文字小文字を維持

ヴィジュネル暗号の使い方 — ステップバイステップ

1

暗号化または復号化を選択します。

2

メッセージを入力します。

3

キーワードを入力します。

4

変換されたテキストを表示してコピーします。

ヴィジュネル暗号はこんな方におすすめ

  • 暗号学
  • 教育
  • セキュリティ
  • 歴史

ヴィジュネル暗号のプロのヒント

  • 1より強い暗号化には自動鍵モードを使いましょう。標準のヴィジュネル暗号はキーワードパターンを繰り返すため、カシスキー検査に対して脆弱です。自動鍵は平文を使って鍵を拡張することで、この繰り返しを排除します。
  • 2一致指数(IC)は強力な暗号解読ツールです。暗号文のICを計算しましょう。0.0385に近ければ、多表式暗号が文字頻度を効果的に隠しています。0.045を超える場合、キーワードが短すぎる可能性があります。
  • 3ランダム鍵ジェネレーターはcrypto.getRandomValuesを使い、暗号論的に安全なランダムキーワードを生成します。ワンタイムパッドに近い安全性を実現する、メッセージと同じ長さの鍵生成に使いましょう。
  • 4複数のメッセージに同じヴィジュネルキーワードを再利用してはいけません。同じキーワードで暗号化された2つのメッセージは、組み合わせて暗号化を打ち消し、クリブドラッギングで両方の平文を暴かれる可能性があります。

ヴィジュネル暗号 — よくある質問

What is the advantage of Vigenère over Caesar?

Vigenère uses a keyword to apply different shifts to each letter, making it a polyalphabetic cipher. This resists simple frequency analysis because the same plaintext letter can encrypt to different ciphertext letters depending on position.

What is autokey mode?

Autokey mode uses the plaintext itself to extend the keyword. After the keyword is exhausted, the plaintext characters are used as the key for subsequent positions. This prevents the repeating pattern that makes standard Vigenère vulnerable to Kasiski examination.

How is the Index of Coincidence interpreted?

IC measures how likely two randomly selected letters are identical. For English text, IC ≈ 0.0667. For random text, IC ≈ 0.0385. A Vigenère-encrypted text with a short keyword will have IC closer to 0.0385, while a value above 0.045 suggests the text may be monoalphabetic or the keyword is very long.

Does the text analyzer support non-English languages?

Yes. The analysis uses the browser's native Intl API for language-aware text segmentation. Word and character counting works correctly for most languages including Chinese, Japanese, Arabic, and accented Latin scripts.

Can I process very long documents?

Documents up to approximately 100,000 words are supported. Analysis is incremental, meaning results update instantly even for large texts without blocking the browser.

ヴィジュネル暗号を今すぐ試す

無料オンラインツール — ブラウザで動作、サインアップ不要。今すぐ使い始められます。

今すぐ試す
Free Forever · No Sign-up

182 Free Tools at Your Fingertips

All free online tools for developers, designers, students, and creators. Every tool works in your browser — no sign-up, no data collection.