The name of this type of cipher is Atbash, a simple substitution cipher originally for the Hebrew alphabet, but possible with any known alphabet. It works by substituting the first letter of an alphabet for the last letter, the second letter for the second to last and so on, effectively reversing the alphabet.