That is a totally inappropriate comparison. Knowing the chemical formula for cocaine does not give me access to cocaine. Whereas access to the source code of a program nessisarially gives you access to the program.
In one case, it is efficacious to restrict the product without restricting the information. In the other case it is not.
In one case, it is efficacious to restrict the product without restricting the information. In the other case it is not.