changed functions so difflog is stored unencrypted on client