There are way too many people like that in tech, who don't stop to take in the bigger picture before performing the requested action.
Fast forward a year to 9/11, and the question would be, "What is the legal basis for not doing everything you can to help the NSA?"
There are laws and a constitution, you can't just throw it out the window at the first phone call.
The NSA has been reverse engineering binaries for decades. Having the source saves them time and resources from doing that. Today, however, I would expect the NSA has their own binary decompiler.
> There are laws and a constitution, you can't just throw it out the window at the first phone call.
In pretty much most cases there are no laws preventing a private individual from fully cooperating with a government agency under your own free will. There may be professional consequences and civil damages, but it's not outright illegal. You would see this in cases of child porn, terrorist attacks, etc.
And frankly, most people would be so happy to see child pornographers locked up, that they wouldn't ask for a warrant from the investigating agency.
Yes, the author was way too quick to give up the source code, but it was just source code, not a backdoor key.
This means all users of the software are less safe. If the NSA can find a bug in the code, they can unlock everyone's files, but nobody else could ever uncover that bug.
They specifically asked for the code for this purpose. If you made no mistakes, your action did not help them nor hurt your customers. But if you have made a mistake that you're not yet aware, you took a conscious step to make it easier for the NSA to exploit that.
While the availability of source code does not make a difference in theory, this falls apart once you realize that even though the NSA has lots of resources, those resources aren't infinite.
However, I would probably respond along the lines, "I'd be happy to supply this, right after you show me a court order". Otherwise, no matter what, I cannot see how it would not be used for anything other than a nefarious purpose.
I'm willing to bet Dave was a government employee, though I won't give up the possiblity he wasn't NSA and more likely some other government organization that needed to stop something yesterday but didn't have the clout to get the big 3 letter organizations to pay attention and help them out
Your users used the software to protect them, or even paid for it. Now this "Dave" can crack files generated by this shareware. Maybe "Dave" had a genuine national security situation. But was it really? What if Dave just wanted to prank the author, during a boring afternoon? What if it were a couple of guys parked outside who hijacked the phone system, so even if you call 411, it would route to their van outside? Or what if Dave already did the same demand to dozens of other security vendors, effectively having the source code of all encryption software? And even if it was a national security situation, what is the legal basis of giving up source code and keys?
What I get is "I was just a regular computer programmer and overnight, I was actually important enough to be useful for the NSA"