Lesson 16 - Applications of Modular Arithmetic PDF
Lesson 16 - Applications of Modular Arithmetic PDF
Lesson 16 - Applications of Modular Arithmetic PDF
1
Applications of Modular Arithmetic
UPC- Universal Product code. It is a 12-digit number that satisfies a modular equation
similar to the ISBN. The last digit is the check digit.
Formula for UPC Check Digit
d12= 10- (3d1 +d2+3d3+d4+3d5+d6+3d7+d8+3d9+d10+3d11)mod 10
Determining a valid credit card number
To determine whether a credit card number is valid companies that idnigits are used
tissue credit cards also use modular arithmetic The coding method is based on the Luhn algorithm
based on mod 10.
Normally credit card numbers comprised 13 to 16 digits long. The first one to six
digits are used to identify the card issuer.
To determine whether a credit card number is valid using Luhn algorithm .,begin with
the next-to-last digit reading from right to left,double every other digit. Find the sum of the new list of
digits the final sum must be congruent to 0 mod 10.
Course Module
Cryptology
It is the study of making and breaking secret codes.
Plaintext is a message before it is coded.
Ciphertext is amessage after it has been coded,
Encryption is the conversion from plaintext to ciphertext.
Decrypt a message means converting it from ciphertext to plaintext