Mã hóa

ROT13 / Mật mã Caesar

Mật mã Caesar — dịch chuyển vòng các chữ cái trong bảng chữ cái Latin. ROT13 là trường hợp đặc biệt với độ dịch 13 (nút bên dưới), đối xứng: encode và decode cho cùng kết quả. Các ký tự khác (số, Kirin, dấu câu) không thay đổi.

Câu hỏi thường gặp

Is ROT13 actually secure?

No, not at all. ROT13 is a trivial letter-rotation cipher with no real security — anyone can decode it instantly, even by eye. It's used for obfuscating spoilers or puzzle answers, not for protecting sensitive data.

Why does encoding and decoding give the same result for ROT13?

ROT13 shifts letters by 13, exactly half of the 26-letter alphabet, so applying it twice returns the original text — encode and decode are the same operation.

What happens to numbers, punctuation, or non-Latin letters?

They're left unchanged. Only Latin alphabet letters are shifted; the custom shift value works the same way for any Caesar cipher variant.