It seems like you might be referring to the Caesar Cipher, a simple and classic encryption technique. The Caesar Cipher is a substitution cipher where each letter in the plaintext is shifted a certain number of places down or up the alphabet.
You can see the code in the file.