The legal precedent is that encryption is a munition in the United States, and therefore protected by the Second Amendment.
It seems, as per the Export Administration Regulations act, cryptography or encrypted items of specific types are indeed considered as Munitions.
Read here: .
https://en.m.wikipedia.org/wiki/Export_of_cryptography_from_the_United_StatesSo there are some legal provisions available for the Twitter battle that is ongoing! I am sure some moron within the government will try to prove it in the court of law as well. Thankfully, US doesn't represent the rest of the world!