Shifting and wrapping
Encrypting adds the shift to each letter's position in the alphabet (A = 0 through Z = 25), and any total past 25 wraps around to the start, so with shift 3 the letter Z becomes C. Decrypting subtracts instead. Letters keep their case, digits and punctuation pass through untouched, and only a-z letters move.