This is a Vigenère cipher machine. At the beginning you put your keyword in and I reckon it works both ways. No punctuation or symbols though, sadface.
This is the second part of my niece's GCSE Computing controlled assessment. I thought it might take a while, but it didn't take long to adapt the Caeser cipher program to work for this cipher.