// Workers AI · dad joke modeDoes code count as speech? Byte-ingly yes.

Code as speech is the legal and philosophical doctrine in the United States that computer source code and similar digital expressions are forms of speech protected by the First Amendment. The idea emerged prominently during the "crypto wars" in the 1990s, when the courts disputed the U.S. government's notion that encryption software constituted munitions, instead recognizing code's expressive function in cases such as Bernstein v. United States. Since then, debates over encryption, privacy tools, cryptocurrency, and 3D-printed gun files have continued to test the boundaries of how law treats code as a medium of expression and continues to be the subject of legal and scholarly debate.[1][2][3]
History
[edit]Encryption as munitions
[edit]In 1977, controversy arose over the application of U.S. export controls to academic research in cryptography, after a member of the National Security Agency sent a letter to the Institute of Electrical and Electronics Engineers (IEEE) warning that the presentation material at a Cornell cryptography conference might violate weapons export regulations.[4] In the early 1990s, the U.S. government started to more actively enforce that strong encryption software was a munition under export regulations, meaning it could not legally be shared overseas without a license.[5] This classification of encryption as munitions was strongly opposed by computer scientists as well as civil liberties, privacy advocates, and cypherpunks who argued that encryption algorithms were mathematical ideas and publishing source code should be protected as speech.[5][6]
Activists printed cryptographic source code on T-shirts as a protest against U.S. encryption export restrictions. Adam Back's "Munitions T-shirt", for example, displayed a short implementation of RSA, intended to demonstrate the implications of treating encryption software as export-controlled munitions.[7]
Bernstein v. United States
[edit]In the mid-1990s Bernstein v. United States, mathematician Daniel J. Bernstein challenged U.S. export controls that restricted him from publishing Snuffle, an encryption system he had developed. Bernstein argued that the regulations constituted an unconstitutional restriction on his ability to publish and discuss cryptographic research.[8][9] Bernstein was represented by the Electronic Frontier Foundation (EFF), which has since played a major role in digital free speech litigation.[10]
The federal district court held that Bernstein's encryption source code constituted speech protected by the First Amendment, reasoning that, "Like music and mathematical equations, computer language is just that, language, and it communicates information either to a computer or to those who can read it."[11][12] In 1999, a three-judge panel of the Ninth Circuit affirmed the judgment, concluding that encryption source code could constitute expression protected by the First Amendment.[13] The Ninth Circuit subsequently granted rehearing en banc and withdrew the panel opinion.[14]
Although the Ninth Circuit opinion in Bernstein was withdrawn, the case became an important part of the legal debate over whether computer source code constitutes speech protected by the First Amendment.[13]
Apple, the FBI, and compelled speech
[edit]In 2016, the FBI sought to compel Apple to create special software to bypass security on an iPhone used by the San Bernardino shooter.[15] Apple refused, arguing that the code itself is expressive and compelling software engineers to write it would violate the First Amendment's ban on compelled speech.[16][17] The dispute ended in March 2016 after the FBI, with assistance from a third party, accessed the iPhone without Apple's help, and the government withdrew its request.[18] As a result, the court did not rule on Apple's argument that compelling it to write and digitally sign the software would constitute compelled speech in violation of the First Amendment.[19][17]
Cryptocurrency and blockchain privacy tools
[edit]
In the 2010s and 2020s, debate began to ensue about whether Bitcoin constituted code protected as speech. Proponents argue that Bitcoin's source code and protocol are themselves political statements about decentralization, censorship resistance, and distrust of centralized authority.[20] Some legal scholars and activists argue that publishing or running Bitcoin software is inherently protected speech because it expresses economic and ideological beliefs and because it is code.[22][23]
In the 2020s, U.S. authorities began to target developers of open-source privacy tools that interface with blockchains. In 2022, the U.S. Treasury sanctioned Tornado Cash, an Ethereum mixing protocol.[24] Critics of this sanction argued that this constituted a sanction of the code rather than the criminal use.[24] The EFF also defended the Tornado Cash developers arguing that publishing open-source privacy tools is protected expression.[25] The prosecution of Tornado Cash founder Roman Storm, while sometimes framed as part of the war on crypto[26] ended in August 2025, when Storm was convicted following a four-week jury trial of conspiracy to operate an unlicensed money transmitting business. The jury found that he knowingly operated Tornado Cash while it transmitted criminal proceeds; the offense carries a maximum sentence of five years' imprisonment.[27]
In 2024, Keonne Rodriguez and William Lonergan Hill, the developers of Samourai Wallet, a Bitcoin privacy tool that uses CoinJoin to mix transactions, were indicted.[28] Critics of the prosecution argued that the government was using efforts to combat criminal activity as a justification to target privacy software and code as speech.[29] In July 2025, Rodriguez and Hill each pleaded guilty to one count of conspiracy to operate a money transmitting business knowing that it transmitted criminal proceeds. As part of their plea agreements, they agreed to forfeit approximately $238 million.[30]
3D-printed guns
[edit]
In 2013, Cody Wilson and his group Defense Distributed published the CAD files for the Liberator, a 3D-printable gun.[31] The U.S. State Department ordered Wilson to remove the files over possible violations of arms-export regulations, triggering a legal dispute in which Defense Distributed argued that distributing the files was protected by the First Amendment.[32][33]
Wilson also developed the Ghost Gunner, a small CNC milling machine that can finish metal gun parts.[34] Defense Distributed portrayed restrictions on distributing digital gun-design files as a free-speech issue, arguing that such files were protected expression.[35][36] Supporters argued that publishing design files, similar to publishing encryption algorithms, is expressive conduct.[37][38] In 2018, Defense Distributed brought a separate lawsuit challenging efforts by New Jersey to prevent it from distributing files for 3D-printed guns to residents of the state. In February 2026, the Third Circuit Court of Appeals upheld the dismissal of the lawsuit. The court held that computer code can receive First Amendment protection but that not all code is necessarily protected: purely functional code without an expressive use does not fall within the First Amendment's protection. The court did not determine that Defense Distributed's gun files were themselves unprotected speech, finding instead that the plaintiffs had provided insufficient information about the files and their use to establish that the First Amendment applied.[39]
DRM, piracy, and the Free Speech Flag
[edit]
In 2007, a 128-bit Advanced Access Content System (AACS) processing key, represented by the hexadecimal number 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0, was published on the Internet. The key could be used to decrypt HD DVD and Blu-ray content protected by AACS.[40][41]
After the licensing organization AACS LA sent Digital Millennium Copyright Act (DMCA) takedown notices seeking removal of the key, it spread widely across the Internet, including on the social-news website Digg.[41][42] Digg initially attempted to remove submissions containing the key, but users responded by repeatedly reposting it. After the resulting user revolt, Digg reversed its policy and announced that it would no longer delete stories or comments containing the number.[43][41] One Digg user described the episode as a "digital Boston Tea Party".[43]
The controversy also produced the Free Speech Flag, designed by John Marcotte, whose RGB color values encode the key.[44] The flag was created as a protest against attempts to suppress publication of the number and illustrated the free-speech questions raised when information capable of circumventing technological restrictions is represented in expressive forms.[45]
The AACS controversy impacted debates over the relationship between copyright, DRM, and freedom of speech.[41] Similar First Amendment questions have arisen over the DMCA's prohibition on circumventing technological protection measures and distributing technologies that facilitate circumvention. The Electronic Frontier Foundation has argued that the DMCA's anti-circumvention provisions can unconstitutionally restrict speech when applied to the publication of computer code.[46]
Internationally
[edit]In 2015, UN Special Rapporteur on freedom of opinion and expression David Kaye concluded that encryption and anonymity enable individuals to exercise their rights to freedom of opinion and expression and therefore deserve strong protection.[47]
See also
[edit]References
[edit]- ↑ "Code as Speech". www.hks.harvard.edu. Retrieved 2025-07-10.
- ↑ Browder, John J. (2000). "Encryption Source Code and the First Amendment". Jurimetrics. 40 (4): 431–444. ISSN 0897-1277.
- ↑ Wang, Xiangnong (George) (2021-02-15), De-Coding Free Speech: A First Amendment Theory for the Digital Age (SSRN Scholarly Paper), Rochester, NY, 4038356, retrieved 2026-09-24
{{citation}}: CS1 maint: location missing publisher (link) - ↑ McGregor, Susan (2016-05-11). "The Second Amendment Case for the Right to Bear Crypto". VICE. Retrieved 2025-07-10.
- 1 2 "When Encryption Was a Crime: The 1990s Battle for Free Speech in Software". Reason.com. 2020-10-21. Retrieved 2025-07-10.
- ↑ "Opinion | Encryption and Free Speech". The Washington Post. 1999-05-10. ISSN 0190-8286. Retrieved 2025-07-10.
- ↑ D. Cook, John (2026-06-13). "RSA munitions T-shirt". Retrieved 2026-09-24.
- ↑ McClure, David. "First Amendment Freedoms and the Encryption Export Battle: Deciphering the Importance of Bernstein v. United States Department of Justice, 176 F.3d 1132 (9th Cir. 1999)". Nebraska Law Review. 79.
- ↑ "Dan Bernstein's Attempt to Publish Snuffle and The Legal Issues Raised". groups.csail.mit.edu. Retrieved 2025-07-10.
- ↑ Markoff, John (December 9, 1997). "Court Hears Appeal in Encryption Case". New York Times. Retrieved 2025-07-10.
- ↑ Pilkington, Laura M. (1996). "First and Fifth Amendment Challenges to Export Controls on Encryption: Bernstein and Karn". Santa Clara Law Review. 37 (1): 159–202.
- ↑ Dame-Boyle, Alison (2015-04-16). "EFF at 25: Remembering the Case that Established Code as Speech". Electronic Frontier Foundation. Retrieved 2025-07-10.
- 1 2 McClure, David (2014). "First Amendment Freedoms and the Encryption Export Battle: Deciphering the Importance of Bernstein v. United States Department of Justice, 176 F.3d 1132 (9th Cir. 1999)". Nebraska Law Review. 79.
- ↑ "Sixth Circuit Classifies Computer Source Code as Protected Speech: Junger v. Daley, 209 F.3d 481 (6th Cir. 2000)". Harvard Journal of Law & Technology. 14: 603. 2001.
- ↑ Devlin Barrett, Danny Yadron and Daisuke Wakabayashi. "Apple and Others Encrypt Phones, Fueling Government Standoff". WSJ. Archived from the original on 2025-07-10. Retrieved 2025-07-10.
- ↑ Yadron, Danny; Ackerman, Spencer; Thielman, Sam (2016-02-25). "Apple accuses FBI of violating constitutional rights in iPhone battle". The Guardian. ISSN 0261-3077. Retrieved 2025-07-10.
- 1 2 Zetter, Kim; Barrett, Brian (2016-02-25). "Apple to FBI: You Can't Force Us to Hack the San Bernardino iPhone". Wired. ISSN 1059-1028. Retrieved 2026-09-24.
- ↑ Zapotosky, Matt (2016-03-28). "FBI has accessed San Bernardino shooter's phone without Apple's help". The Washington Post. ISSN 0190-8286. Retrieved 2026-09-24.
- ↑ Nakashima, Ellen (2016-04-16). "The San Bernardino case is already changing Apple's arguments over another locked iPhone". The Washington Post. ISSN 0190-8286. Retrieved 2026-09-24.
- 1 2 "The Bitcoin Ideology". Archived from the original on 2020-01-16. Retrieved 2025-07-10.
- ↑ Wales, Justin; Ovelmen, Richard (2019-11-22). "Bitcoin is Speech: Notes Toward Developing the Conceptual Contours of Its Protection Under the First Amendment". University of Miami Law Review. 74 (1): 204.
- ↑ Jeong, Sarah (2014-02-07). "Is Bitcoin Free Speech?". Slate. ISSN 1091-2339. Retrieved 2025-07-10.
- ↑ Chang, Samantha (July 3, 2019). "U.S. Can't Ban Bitcoin Because It's Free Speech: Abra CEO". Yahoo! Finance.
- 1 2 "A First Amendment fight for the future of the internet - The Boston Globe". BostonGlobe.com. Archived from the original on 2024-07-17. Retrieved 2025-07-10.
- ↑ Opsahl, Kurt (2022-08-22). "Code, Speech, and the Tornado Cash Mixer". Electronic Frontier Foundation. Archived from the original on 2025-05-06. Retrieved 2025-07-10.
- ↑ Khalili, Joel. "Tornado Cash Made Crypto Anonymous. Now One of Its Creators Faces Trial". Wired. ISSN 1059-1028. Retrieved 2025-07-16.
- ↑ "Founder Of Tornado Cash Crypto Mixing Service Convicted Of Knowingly Transmitting Criminal Proceeds". United States Attorney's Office, Southern District of New York. United States Department of Justice. 2025-08-06. Retrieved 2026-09-24.
- ↑ Book, Joakim (2024-05-01). "Groundhog Day for the crypto wars: The DOJ on bitcoin prowl". Reason.com. Retrieved 2025-07-10.
- ↑ Huang, Roger. "Samourai Indictment & FBI Notice Are An Assault On Bitcoin And Privacy". Forbes. Retrieved 2025-07-10.
- ↑ "Founders Of Samourai Wallet Cryptocurrency Mixing Service Plead Guilty". United States Attorney's Office, Southern District of New York. United States Department of Justice. 2025-08-06. Retrieved 2026-09-24.
- ↑ "The blueprint for a 3-D-printed gun was uploaded in book form to Amazon as a free speech exercise. Amazon removed it". The Washington Post. 2018-08-23. Archived from the original on 2022-12-16. Retrieved 2025-07-10.
- ↑ Greenberg, Andy. "State Department Demands Takedown Of 3D-Printable Gun Files For Possible Export Control Violations". Forbes. Retrieved 2025-07-10.
- ↑ Feuer, Alan. "Cody Wilson, Who Posted Gun Instructions Online, Sues State Department". The New York Times. Archived from the original on 2018-03-09. Retrieved 2025-07-10.
- ↑ Greenberg, Andy. "This "Ghost Gun" Machine Now Makes Untraceable Metal Handguns". Wired. ISSN 1059-1028. Retrieved 2025-07-10.
- ↑ "'Downloadable Gun' Clears a Legal Obstacle, and Activists Are Alarmed". The New York Times. Archived from the original on 2018-07-13. Retrieved 2025-07-10.
- ↑ Doherty, Brian (2021-04-30). "The State Department Fought To Allow 'Ghost Gun' Files and Won. Why Is It Still Trying To Remove Them?". Reason.com. Retrieved 2025-07-10.
- ↑ O'Sullivan, Andrea (2018-07-18). "When Code Is Speech, Tech Like 3D-Printed Guns Sees Greater Protection from Censorship". Reason.com. Retrieved 2025-07-10.
- ↑ "Is Code Free Speech?". www.pbs.org. 2018-07-27. Retrieved 2025-07-10.
- ↑ Novak Jones, Diana (2026-02-12). "Not all computer code protected as speech, US appeals court finds in ghost gun case". Reuters. Retrieved 2026-09-24.
- ↑ "09 f9 11 02 9d 74 e3 5b d8 41 56 c5 63 56 88 c0 is the number they tried to ban - The Inquirer". The Inquirer. Archived from the original on 2009-10-29. Retrieved 2025-07-10.
- 1 2 3 4 Stone, Brad (2007-05-03). "In Web Uproar, Antipiracy Code Spreads Wildly". The New York Times. ISSN 0362-4331. Retrieved 2025-07-10.
- ↑ Bushell-Embling, Dylan. "Digg finds the key is safety in numbers". Brisbane Times. Archived from the original on 2025-06-07. Retrieved 2025-07-10.
- 1 2 "Digg's DRM Revolt". Forbes. Archived from the original on 2007-05-04. Retrieved 2025-07-10.
- ↑ "Digg finds the key is safety in numbers - web - Technology". Brisbane Times. Archived from the original on 2015-09-24. Retrieved 2025-07-10.
- ↑ "WEBLOGS AND ACTIVISM: A SOCIAL MOVEMENT PERSPECTIVE ON THE BLOGOSPHERE". Pennsylvania State University. Archived from the original on 2016-03-04. Retrieved 2025-07-10.
- ↑ "EFF Asks Appeals Court to Rule DMCA Anti-Circumvention Provisions Violate First Amendment". Electronic Frontier Foundation. 2022-01-13. Retrieved 2025-07-10.
- ↑ "Encryption key to free speech, says UN report". BBC News. 2015-05-29. Retrieved 2025-07-10.