Encrypt the data based on the password provided