"put the encryption and decryption into methods"