Implemented decryption, fixed wrong key in encryption.