NIF letter computation
The spanish ID (DNI) is a document containing a unique number for each person in the country. Some years ago a letter was added to this number forming the NIF, with administrative aims. This letter can be computed from the number. The algorithm is simple and can be easily found on the Web (for example, here). Below there is a Java applet for computinf the NIf from the DNI.