Added Encrypt and Decrypt Function