update with encryption