Luhn checksum implemented in MATLAB
The Luhn algorithm is a fast checksum that allows you to know if an entered series of numbers has any of the repeated digits or transpositions that are common when typing numbers in. By having a simple checksum, you can validate a number before doing a more costly database check. This video explains how to implement the algorithm. A future video will discuss a simple testing mechanism to show what failure modes go undetected by this checksum.
댓글
댓글을 남기려면 링크 를 클릭하여 MathWorks 계정에 로그인하거나 계정을 새로 만드십시오.