UserHostAddress hashed?

.NET obfuscator and automated error reporting

UserHostAddress hashed?

Postby tristan » Mon Jul 04, 2011 3:58 pm

We've just upgraded to SmartAssembly 6.1 and we're getting our reports downloaded now except for one problem.

Previous versions used to list the Host IP Address in the UserHostAddress but it seems that this is now a hashed address so we cannot see exactly where the automated reports have come in from. Is there a way to decrypt this address?

Is this intentional or am I missing a setting when we're building our SA project?

Posts: 1
Joined: Mon Jul 04, 2011 3:50 pm

Postby dom.smith » Wed Jul 06, 2011 9:40 am

Hi Al,

I can confirm that this is intentional. We started hashing the host IP address in SmartAssembly 6, which introduced Feature Usage Reporting.

We hash the host IP address to help protect the privacy of your users: it makes it difficult to link a user's feature usage reports to an error report, which might contain the user's email address, for example.

To achieve this, Automated Error Reporting and Feature Usage Reporting use different salts when creating the hash.

If your users have static IP addresses, which you know, you can calculate the hash of their IP address. This should help you discover where error reports have come from. The SDK in SmartAssembly Professional contains a DLL called SmartAssembly.SDK.dll. One of the Helpers in that DLL is the method HashAddress(str ipAddr, bool featureReporting). So, to determine the hash of the IP address used in Error Reports, call:

Code: Select all
HashAddress("", false);

Naturally, we do not provide a method for reversing the hash, and the algorithm used is deliberately designed to take a long time to reverse.

Dominic Smith,
Project Manager,
Posts: 107
Joined: Thu Jun 03, 2010 4:54 pm
Location: Cambridge, UK

Return to SmartAssembly 6

Who is online

Users browsing this forum: No registered users and 2 guests