5.2 Example
Let, the character is “T”. Now according to the steps we will get
the following:
Step 1: ASCII of “T” is 84 in decimal.
Step 2: The Binary value of 84 is 1010100. Since it is not an 8 bit
binary number we need to make it 8 bit number as per the
encryption algorithm. So it would be 01010100
Step 3: Reverse of this binary number would be 00101010
Step 4: Let 1000 as divisor i.e. Key
Step 5: Divide 00101010 (dividend) by 1000(divisor)
Step 6: The remainder would be 10 and the quotient would be 101.
So as per the algorithm the ciphertext would be 01000101 which is
ASCII 69 in decimal i.e. “E”