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, sad-face.
Notes & Credits
Thanks to MikeyLear for the original project Vigenère Cipher En- and De-coding Machine.