エンコード
ROT13 / シーザー暗号
シーザー暗号 — ラテンアルファベットの文字を巡回的にずらす暗号。ROT13 はずらし数13の特別な場合(下のボタン)で、対称的(encode と decode の結果が同じ)です。それ以外の文字(数字、キリル文字、記号)は変更されません。
A Caesar cipher cyclically shifts every letter of the alphabet by a fixed number of positions. ROT13 is the special case with a shift of 13, which makes the cipher self-inverting: apply ROT13 twice and you get the original text back.
How to use it
- For ROT13, just paste text — encoding and decoding are the exact same operation.
- For a custom Caesar shift, specify how many positions to shift (1-25).
- Digits, punctuation, and non-Latin characters are left unchanged.
Common uses
- Hiding a spoiler or answer in a forum post so it isn't read accidentally at a glance.
- A historical or teaching example of the simplest substitution cipher when learning cryptography.
- Light obfuscation of text in code or a config where cryptographic strength isn't needed.
Things to keep in mind
ROT13 is not encryption in any security sense — it's obfuscation, trivially broken by hand without any tool or key.
Since the Latin alphabet has 26 letters and 13 is exactly half of that, ROT13 is symmetric: the same operation encodes and decodes.
よくある質問
ROT13 は暗号として安全ですか?
安全ではありません。ROT13はアルファベットを13文字分ずらすだけの単純な置換で、鍵も存在しないため誰でも即座に解読できます。フォーラムのネタバレ隠しなど、真剣な用途ではなく軽い難読化や遊びのために使われます。
なぜ ROT13 は encode と decode が同じ結果になるのですか?
アルファベットは26文字で、13はその半分だからです。2回続けて13文字ずらすと元の文字に戻るため、同じ操作を2回適用すると平文に戻る対称的な性質があります。
シフト量を変えると何が変わりますか?
シフト量はアルファベットを何文字分ずらすかを指定するもので、ROT13はシフト量13の特別な場合です。1〜25の任意の値を指定でき、ラテンアルファベット以外の数字や記号、他の文字体系は変更されません。
ROT47 と ROT13 は何が違いますか?
ROT47はより広いASCII範囲(33〜126)を対象とするため、ラテンアルファベットだけでなく数字や句読点、記号も追加でシフトします。自己反転するシフトという基本的な考え方は同じです。
ツールなしで ROT13 を解読できますか?
はい、簡単にできます。各文字を頭の中で13文字ずらしながら読んだり、A↔N、B↔Oというようにアルファベット全体でペアを覚えておけば解読できます。これは保護手段ではなく、あくまで軽い難読化です。