User:Davidgothberg/Test7

From Wikipedia, the free encyclopedia

Cryptography
History of cryptography | Cryptanalysis | Cryptography portal | Topics in cryptography
Symmetric-key algorithm | Block cipher | Stream cipher | Public-key cryptography | Cryptographic hash function | Message authentication code | Random numbers




[edit] The main crypto navigation box

This template is the main crypto navigation box. It can be added to the bottom of any cryptography article. This template also has some magic so it can include one or more of the specialised crypto navigation boxes inside the same frame.

To only use this template alone add this code to the bottom of an article:

{{crypto navbox}}

If you want it to also show for instance the specialised navigation box about stream ciphers then give it the "stream" parameter, like this:

{{crypto navbox | stream}}

You can also add several boxes in it, like this:

{{crypto navbox | block | stream}}

The available specialised boxes are:

block, stream, public-key, hashes, machines, classical

For more details about these navigation boxes please see the WikiProject Cryptography.


[edit] Technical details

If / when you make a new specialised navigation box there are several things you need to know:

  • The specialised boxes need to use special naming if you want to be able to use them within the main crypto navigation box. Say you want to make a navigation box about "anonymity" then it should have the URL "Template:Crypto anonymity". Then it can automatically be used like this: {{crypto navbox | anonymity}}
  • The specialised boxes need special code within them to function properly. So please copy the code from one of the existing boxes.
  • When you copy the code from one of the existing boxes don't forget to update the URL for the edit button to point to your new box. (That is, the edit button in the top right corner within the template.)

[edit] David's dev comments (to be removed once this is deployed)

  • There is a test example of this box in use: User:Davidgothberg/Test4
  • Feel free to edit this page even though it is in my user space. But watch out for the magic in the code...
  • Don't forget to set the right URL for the edit button in the top right corner once this template is moved to its final URL!!!
  • I used the name "Random numbers" for the link to Cryptographically secure pseudorandom number generator since that is a too long name to have in the box and "CSPRNG" is too incomprehensible for beginners. And that article is a good start for reading about why and how we use random numbers in cryptography.