From typewriters to quantum cryptography, governments are exploring old and new ways of keeping information secret.