VIGENÈRE CIPHER

Vigenère cipher, a polyalphabetic lock.

Enter text and a key to encrypt or decrypt. The key cycles over the plaintext, harder to crack than a simple Caesar — a CTF staple.

Most tools process data locally; see this page for details

Unknown key? Try frequency analysis

Analyze the English ciphertext above, estimate key length, and rank candidate keys and plaintexts using English letter frequencies. This is statistical analysis, not an exhaustive search of every possible key; short or non-English text may be ambiguous.

What is this?

Vigenère uses a repeating sequence of Caesar shifts: each plaintext letter is shifted by the position of the matching key letter. Decryption subtracts. Only A–Z/a–z are shifted; others are kept.

FAQ

Can the key be Chinese?

Standard Vigenère uses A–Z only. Non-letters in the key are ignored and letters are uppercased before use.

Is anything uploaded?

No. Everything runs in your browser; nothing is sent to a server.

Can I recover an unknown key?

Frequency analysis can estimate key length and analyze each letter column to suggest candidate keys and plaintext. It works best on longer English ciphertext; use the challenge context to judge results. Short, non-English, or additionally encoded text may not be recoverable.

示例与注意事项Example & notes

一个例子A worked example

明文 ATTACK、密钥 KEY 加密得到 KXRKCE——每个字母的位移量都不同,比凯撒难破解得多。Plaintext ATTACK with key KEY encrypts to KXRKCE — each letter shifts by a different amount.

注意事项Things to watch

相关问答More Q&A

怎么解密?How do I decrypt?

用同一密钥反向位移即可,页面支持加密与解密双向切换。Shift backwards with the same key — the page toggles between the two directions.

密钥可以用中文吗?Can the key be Chinese?

建议用字母;中文可先转拼音再作为密钥。Stick to letters; convert Chinese to pinyin first.

Further reading

觉得好用?Found it useful?