This code is a cipher which takes in a plaintext or ciphertext string and encrypts / decrypts according to a user defined key value.