How the rotation works
ROT13 shifts each ASCII letter 13 positions along the 26-letter alphabet, wrapping around at the end (A→N, N→A). Digits, spaces, and punctuation are left alone. Because 13 is exactly half of 26, encoding and decoding are the same step.
ROT47 works on the 94 printable ASCII characters (codes 33–126) and shifts by 47 — half of 94 — so it also rotates digits and symbols. Spaces and control characters are untouched.