IIRC, the US policy of restricting cryptography applied mainly to exports, not use within the States. While the constitution gives you the right to bear arms, the argument is that it doesn't give you the right to send them to possible subversives in Timbuktu.
To get around that, developers used the First Amendment in a very interesting way: while this law was intact, crypto code developed in the USA was distributed internationally by printing out the source code, binding it in volumes as a book (and, thus, protected by Free Speech), then shipping it abroad where it was scanned (by machine or humans, I cannot recall) and compiled.
This is basically a stunt. The reality is, export controls really did make it a giant pain to ship software, they really did weaken crypto for everyone (by prompting vendors to ship "export-grade" crypto versions), and the policy was genuinely effective despite nerdy moves like "printing the code in a book". Meanwhile, the underlying science of cryptography was published in academic journals and free to the world; the only people who suffered were developers and end-users.