While I get the sentiment - if you operate in a country you need to follow the laws of the land no matter how you might personally view them - the reality is that this action might have actually killed people. Even if it didn't do - do you think that in that position yourself you could have said with a clear conscience: "nothing bad will happen to these people" if I give out their details?
[1] http://www.theregister.co.uk/2007/11/07/yahoo_google_microsf...
[2] http://www.theregister.co.uk/2008/08/26/yahoo_microsoft_iran...
In Iran you would be hanged simply because you don't believe in Islam, or think women should have equal rights.
This means that there should be no more respect for laws made by Iran than for the average street bully.
I challenge you to provide a single reference for any of the above alleged "hanging" offenses. (You will be held to your statements of fact regarding "believe" and "think".)