There is no obligation to maintain the secrecy of information simply because it would likely be classified Top Secret. In the absence of a secret designation, legally generated information is free to disseminate.
Born Secret
Under "Born Secret" doctrine, the answer is different. In those cases, the government does not designate information as classified; the information is effectively classified without any action being taken by the government. But it's too narrow to be applied to just any information that could be classified.
Here's how it works:
- First, it applies only to "restricted data," defined as "all data concerning (1) design, manufacture, or utilization of atomic weapons; (2) the production of special nuclear material; or (3) the use of special nuclear material in the production of energy." 42 USC § 2014.
- Then it imposes restrictions on anyone "having possession of, access to, control over, or being entrusted with any document, writing, sketch, photograph, plan, model, instrument, appliance, note, or information involving or incorporating Restricted Data." Under 42 USC § 2274, it is a felony if that person:
- "communicates, transmits, or discloses the same ... with intent to injure the United States or with intent to secure an advantage to any foreign nation" or
- "communicates, transmits, or discloses the same ... with reason to believe such data will be utilized to injure the United States or to secure an advantage to any foreign nation."
- It also includes a broader provision prohibiting the disclosure of restricted data regardless of purpose, but it only applies to federal employees, contractors, and the like. 42 USC § 2277.
So the law applies to anyone with "possession of ... any ... instrument ... or information involving or incorporating Restricted Data," and restricted data is "data concerning ... manufacture ... of atomic weapons." If our inventor had developed a 3-D atomic bomb printer, she would have possession of an instrument and information involving data concerning the manufacture of atomic weapons. She would therefore be covered under the law.
That means that she would be prohibited from disclosing any restricted data, but only if:she made the disclosure because she was trying to injure the United States or to help a foreign nation, or if she knew that disclosing the data would have that information.
Selling the data to North Korea would obviously be a problem in that case, but it sounds as though a simple announcement of the fact that she had successfully built the device would not violate the Act, as that would not actually be disclosure of "data" concerning the manufacture of atomic weapons.
Even the disclosure of the data itself would not necessarily violate the law. If she shared it with someone to facilitate a collaboration on improvements to the device, that shouldn't be a problem unless she knew that the collaborator was trying to injure the United States or help a foreign nation. On the other hand, simply taking all the data and posting it to the Internet probably would be a violation, as anyone doing so would know that it would then be used by foreign nations to their own advantage.
Beyond Born Secret, there's also the Invention Secrecy Act, but my understanding is that it only applies to inventions for which the inventor has applied for a patent.
Constitutional limitations
Of course, all of this assumes that Born Secret or the Invention Secrecy Act can withstand a First Amendment analysis, which is hardly certain. Under Bartnicki v. Vopper, 532 U.S. 514, 527 (2001) "state action to punish the publication of truthful information seldom can satisfy constitutional standards." There's obviously a strong argument to be made that an atomic bomb how-to would be a good exception. This was the subject of United States v. Progressive, which was never fully resolved.
Both restrictions also implicate the Fifth Amendment's Takings Clause, though the Invention Secrecy Act makes some provisions for compensation to the inventor.