A=0 through Z=25. You multiply by 5, add 8, wrap at 26. Spaces stay honest.

Tap to enlarge