Corrected encrypt and removed not working decrypt