This is a simple shift cipher.Note : There should not be any empty space letters/words during the input and also key value is must

For encryption : encrypt(val1,val2)

-->val1 - plain txt; -->val2 - key 

For decryption : decrypt(val1,val2)

-->val1 - cipher txt; -->val2 - key