encrypting & decrypting the profile