For decades, many of the most advanced military weapons were developed in complete secrecy.