tarkistuskoodia
Tarkistuskoodia, often translated as "check digit" or "checksum," is a form of redundancy used to detect accidental errors in data transmission or entry. It is a simple algorithm applied to a piece of data to produce a single digit or character. This check digit is then appended to the original data. When the data is later read or transmitted, the same algorithm is applied again, and the newly calculated check digit is compared to the stored one. If they match, it is highly probable that the data was transmitted or entered without error. If they differ, an error is indicated.
The most common type of tarkistuskoodia is the Luhn algorithm, widely used for credit card numbers. Other