![]() ![]() Therefore, we obtain a new list with n element, each between 0 and 25 both included. ( Modulo means remainder)Įxample : Modulo 4 of 19 is 3 because 15 = 4 * 4 + 3 In the other hand, modulo 26 of 26 is 0 because 26 = 26 * 1 + 0 The next step consists in finding the values of modulo 26 of each number. If we take all the images and put them in a list, we obtain n numbers corresponding to n characters of the initial text. "a" and "b" are the keys required to decrypt the final message. "x" is representing the number while "a" and "b" are defined during the encryption. Then, each number obtained is transformed by an affine function (f(x) = ax + b). Detailed Explanations : How it works?įirstly, each character of the initial text (message to encrypt) is converted in a number from 0 to 25, corresponding to its position in the Latin alphabet which contains 26 letters -> (a = 0, b = 1. It encrypts a text using an affine function (f(x) = ax + b). The affine cipher is a type of monoalphabetic substitution cipher. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |