Julian Assange, the WikiLeaks founder, was charged last year by the Trump administration in connection with the publication of secret United States government documents. On Tuesday, Glenn Greenwald, an American journalist living and working in Brazil, was charged, in a criminal complaint brought by Brazilian prosecutors, with cybercrimes in connection with his stories on private messages among Brazilian officials that revealed corruption and abuses at the highest levels of the government. The case against Mr. Greenwald is eerily similar to the Trump administration's case against Mr. Assange. Last April, the Justice Department charged Mr. Assange with aiding a source, the former Army intelligence analyst Chelsea Manning, to gain access to a United States military computer database. In May 2019, the charges against him were broadened, and he was indicted under the Espionage Act in connection with the publication of American military and diplomatic documents by WikiLeaks. Both cases are based in part on a new prosecutorial concept - that journalism can be proved to be a crime through a focus on interactions between reporters and their sources. Prosecutors are now scrutinizing the processes by which sources obtain classified or private information and then provide it to journalists. Since those interactions today are largely electronic, prosecutors are seeking to criminalize journalism by turning to anti-hacking laws to implicate reporters in the purported criminal activity of their sources.