Extract encryption into separate class
Extract decryption into separate class