การเข้ารหัส
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 ปลอดภัยจริงหรือไม่?
ไม่เลย ROT13 เป็นรหัสหมุนตัวอักษรง่าย ๆ ที่ไม่มีความปลอดภัยจริง ใครก็ถอดได้ทันทีแม้ด้วยตาเปล่า มันถูกใช้เพื่อปิดบังสปอยล์หรือคำตอบปริศนา ไม่ใช่เพื่อปกป้องข้อมูลสำคัญ
ทำไมการเข้ารหัสและถอดรหัสของ ROT13 จึงได้ผลลัพธ์เดียวกัน?
ROT13 เลื่อนตัวอักษรไป 13 ตำแหน่ง ซึ่งเท่ากับครึ่งหนึ่งของตัวอักษร 26 ตัวพอดี การใช้ซ้ำสองครั้งจึงได้ข้อความเดิมกลับมา การเข้ารหัสและถอดรหัสจึงเป็นการกระทำเดียวกัน
ตัวเลข เครื่องหมายวรรคตอน หรือตัวอักษรที่ไม่ใช่ละตินจะเป็นอย่างไร?
จะไม่ถูกเปลี่ยนแปลง มีเพียงตัวอักษรละตินเท่านั้นที่ถูกเลื่อน ค่าการเลื่อนที่กำหนดเองก็ทำงานแบบเดียวกันกับรหัสซีซาร์รูปแบบใดก็ได้
ROT47 ต่างจาก ROT13 อย่างไร?
ROT47 ทำงานกับช่วง ASCII ที่กว้างกว่า (33–126) จึงเลื่อนตัวเลข เครื่องหมายวรรคตอน และอักขระพิเศษเพิ่มเติมด้วย ไม่ใช่แค่ตัวอักษรละติน แต่ยังคงแนวคิดการเลื่อนแบบผกผันในตัวเองเช่นเดิม
ถอด ROT13 โดยไม่ใช้เครื่องมือได้ไหม?
ได้ ง่ายมาก — แค่อ่านข้อความพร้อมเลื่อนแต่ละตัวอักษรในใจไป 13 ตำแหน่ง หรือจำไว้ว่า A↔N, B↔O ไล่ไปจนครบตัวอักษร นี่ไม่ใช่การป้องกัน เป็นเพียงการทำให้สับสนเล็กน้อยเท่านั้น