Add functionality to prepare input string.
Decryption functional, needs refactoring.
Refactor encrypt decrypt.