Question: AFFINE ( LINEAR ) CIPHER: Affine cipher, also known as linear cipher, is a geometric encryption method. y = a x + b Here, x
AFFINE LINEAR CIPHER:
Affine cipher, also known as linear cipher, is a geometric encryption method.
Here, x is the text to be encrypted and ab are the key values.
Encryption:
Step : All characters of the text to be encrypted are converted to their corresponding values in the alphabet. For example, if we use the English alphabet, we should use values from to etc.
Step : For each value, apply the operation Here, is the number of characters in the alphabet. For instance, for the English alphabet, is chosen as
Step : The result of each value produced by the function is written as a character corresponding to that value in the alphabet.
Decryption:
Step : The encrypted text is broken down into individual characters, and the position of each character in the alphabet is determined.
Step : Find the appropriate value of for which zmodn Here, the value of a was initially provided as a key.
Step : After finding the appropriate z value, apply the operation to each value.
Step : Find the corresponding character in the alphabet for each value, and the encrypted message is decrypted.
NOTE: For this method to work correctly, a and must be coprime. For this reason, for an alphabet with characters, there are possible keys.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
