= (11010001 00110001 00001011 10100110. 01011011) + (01001011 01111010
01110000 11101001. 01000111) mod 232
= 00011010 11110111 11111010 10111000 XOR S3.c
= 00011010 11110111 11111010 10111000 XOR (11101001 00111101 01011010
01101000. 00001111)
= 11001111 10100000 01010011 01111110 00011000 + S4.d mod
232
= (11001111 10100000 01010011 01111110 00011000 + (00111010 00111001
11001110 00110111. 11111100) mod 232
= 11001010 00111010 10010010 01000001
F (XL) = 11001010 00111010 10010010 01000001
XR = F (XL) XOR XR
XR = 11001010 00111010 10010010 01000001 XOR 10010001 01111100
00111001 00111100
XR = 01011011 01000110 10101011 01111101
Changing the value of XL and XR:
XL = XR ; XR = XL
XL = 01011011 01000110 10101011 01111101;
XR = 01000011 01010110 00010011 10011111
-
After doing 16 iterations, it will generate new values XL and XR each
32 bits. Switch back XL and XR. After that XOR the XL and XR: XR = XR
XOR P16 and XL = XL XOR P17 XR XOR
P16
= 01000011 01010110 00010011 10011111 XOR 10010010 00010110 11010101
11011001
= 11010001 01000000 11000110 01000110 XL XOR
P17
= 01011011 01000110 10101011 01111101 XOR 10001001 01111001
11111011 00011011
= 11010010 00111111 01010000 01100110
- Then XL and XR are combined so that it becomes 64 bit.
11010010 00111111 01010000 01100110 11010001 01000000 11000110
01000110
- The binary value is converted into ASCII code so as to produce i.e.
ciphertext : Ò?PfÑ@ÆF
The result of blowfish cipher encryption would be compressed with LZW algorithm, and the process is as follows (character used is ASCII standard character).