Encrypted data is more like speech than a weapon. The analogy to guns just doesn't work.
I think, at this point, one could successfully argue that the proposed law follows 'reasonable regulation' and so protections aren't afforded. But it would be an interesting discussion.