. An organization wants to transmit data securely over telephone, but they are
concerned that their phone may be tapped. All the data are transmitted as five
digit integers (numbers). The organization wants to encrypt (hide the actual five
digit number by encoding) the actual five digit number so that it can be
transmitted more securely. The encryption or encoding method is as follows.
Each digit in the number will be replaced by adding 7 and modulo 10.
Program must contain function to_encode(int) which takes (as input) a series of
five digit numbers and produce the encrypted or encoded numbers.
Comments
Leave a comment