If you want to know, Richard Stallings book has some details of how it could be done. There are more modern schemas. I would say that they are still vulnerable to denial of service attacks
I would be currently not in favour of it as we have an environment where there are too many government IT systems that are weak. I admit there are some that are good but you don’t want it mucked up with the core of the democratic system.