Extension of Playfair Cipher Using 16X16 Matrix

Extension of Playfair Cipher Using 16X16 Matrix

International Journal of Computer Applications (0975 – 888) Volume 48– No.7, June 2012 Extension of Playfair Cipher using 16X16 Matrix S.S.Dhenakaran, PhD. M. Ilayaraja Assistant Professor Research Scholar Computer Science and Engineering Computer Science and Engineering, Alagappa University, Karaikudi, India. Alagappa University, Karaikudi, India. ABSTRACT The role of Cryptography in today‟s digital world is Cryptography is segmented into Symmetric key and significant. It secures information mathematically by Asymmetric key cryptography. It is further defined that same mangling message with key. The privacy of intended sender key used for encryption and decryption is called Symmetric and receiver information is protected from eavesdropper. The key cryptography. Otherwise it is called Asymmetric key objective of the paper is playfair cipher. The existing cryptography. This paper use substitution / replacement methods of playfair cipher are studied. The restrictions of playfair cipher of symmetric key cryptography [1]. earlier works a playfair cipher using 5X5 matrix, 7X4 matrix and 6X6 matrix are overcome in the proposed work. The 2. PLAYFAIR CIPHER proposed method plays a 16X16 matrix giving strength to Playfair cipher that is a substitution cipher was first developed playfair cipher. The proposed work is an enhancement to the by Charles Wheatstone in 1854. Later it was promoted by Lord Playfair. Now it is called playfair cipher [2]. existing algorithms that uses 16X16 matrix to pick cipher characters. It makes use of alphabets both lower and 2.1 Existing Playfair Algorithm using 5x5 uppercase characters, number and special characters for Matrix constructing the contents of the matrix. The existing playfair cipher working on 5x5 matrix is General Terms constructed with a keyword “CRYPTO”. The Table 1 below shows the construction of 5x5 matrix using the keyword Encryption, Decryption, Plaintext, Ciphertext. “CRYPTO” plus the uppercase alphabets satisfying the rules Keywords of preparing the table. The matrix is first filled by the Playfair Cipher, Substitution, Cryptography, Network keyword from left to right and the remaining cells are filled Security, Symmetric Key. by the uppercase alphabets ignoring the letters of keyword. Table 1. Playfair 5x5 Matrix 1. INTRODUCTION Etymologically speaking, the word cryptography comes from C R Y P T the Greek origin. It is a combination of two words Crypto and Graphy. Crypto means Secret and Graphy means Writing [1]. O A B D E Cryptography deals with creating documents that can be shared secretly over public communication channels. The present Scenario, everyone needs to encrypt the message at F G H I/J K the sender side and decrypt it at the receiver side to preserve security and privacy. So cryptography is the study of creating L M N Q S and using encryption and decryption techniques. In cryptography the term plaintext is used for the original message that is to be transformed. The message which has U V W X Z been transformed is called Ciphertext. An encryption algorithm works with a key to transform the plaintext into ciphertext. Decryption algorithm works in the reverse order and converts the ciphertext into plaintext [5]. In this algorithm, the letters I & J are counted as one The encryption /decryption algorithm is to encrypt/decrypt the character. It is seen that the rules of encryption applies an message with the help of a key. The process of converting pair of plaintext characters. So, it needs always even number plaintext into ciphertext is called enciphering or encryption. of characters in plaintext message. In case, the message The process of retaining the plaintext from the ciphertext is counts odd number of characters a spare letter X is added at called deciphering or decryption. The following figure shows the end of the plaintext message. the encryption and decryption process. Further repeating plaintext letters in the same pair are separated with a filler letter, such as X, so that the word COMMUNICATE would be treated as CO MX MU NI CA TE. 2.1.1 Rules a) Plaintext letters that fall in the same row of the matrix are replaced / substituted by the letter to the right, with the first element of the row circularly following the last. For example pt is encrypted as Fig 1. Encryption / Decryption Process TC. 37 International Journal of Computer Applications (0975 – 888) Volume 48– No.7, June 2012 b) Plain text letters that fall in the same column are 2.2.1 Limitations of 7x4 Matrix replaced by the letter beneath, with the top element 26 characters only can take as a keyword without any of the row circularly following in the last. For repetition. example, cu is encrypted as OC. The space between two words in the plaintext is not c) Otherwise, each plaintext letter is replaced by the considered as one character. letter that lies in its own row and the column It cannot use numbers and special characters except occupied by the other plaintext letter. Thus, oh „*‟ and „#‟. becomes BF, and fd becomes IO (or JO, as the It is not case sensitive. enciphered wishes) [2]. It ignores the symbols „*‟ and „#‟ at the time of 2.1.2 Limitations of 5x5 Matrix decipherment. It considers the letters I and J as one character. 2.3 Existing Playfair Algorith using 6x6 26 letters alone can take as keyword without Matrix duplicates. This playfair algorithm is based on the use of a 6x6 matrix Space between two words in the plaintext is not using letters and numbers. Here also the keyword considered as one character. “CRYPTO” is used. The matrix is constructed by filling the It cannot use special characters and numbers. letters of the keyword from left to right and from top to bottom, remaining cells of the matrix are filled by uppercase It only uppercase alphabets. alphabets and numbers ignoring the letters of the keyword as A spare letter X is added when the plaintext word in Table 3 [4]. consists of odd number of character. In the decryption process this X is ignored. X is a valid This algorithm cannot consider the letters I and J as one character and creates confusion because it could be a character. Place I and J in two different cells in order to avoid part of plaintext, so we cannot simply remove X in the ambiguity at the time of decipherment. The rules of decryption process. playfair 5x5 matrix are used to encrypt the plaintext. X is used a filler letter while repeating letter falls in Table 3. Playfair 6x6 Matrix the same pair are separated. C R Y P T O 2.2 Existing Playfair Algorithm using 7x4 Matrix A B D E F G A keyword is used to construct 7x4 matrix using letters and H I J K L M symbols „*‟ and „#‟ which is the base for this Playfair Algorithm. The 7x4 matrix is constructed by filling keyword N Q S U V W with no repeating letters. Here the keyword “CRYPTO” is X Z 0 1 2 3 used. The remaining spaces are filled with the rest of alphabets. As shown in the table 2, the last cell is filled by 4 5 6 7 8 9 the symbol “#” and the remaining cell that is before the last cell is filled by the symbol “*” [3]. 2.3.1 The Existing Playfair Algorithm using 6x6 Matrix overcome the problem of 5x5 Matrix Table 2. Playfair 7x4 Matrix Letters I and J are counted as two letters. C R Y P The alphabets and numbers are used in the plaintext and the keyword. T O A B D E F G 2.3.2 Limitations of 6x6 Matrix This 6x6 matrix can only take 36 characters as a H I J K keyword without duplicates. L M N Q Space between two words in plaintext is not considered as one character. S U V W The matrix cannot accept special character. X Z * # It is not case sensitive. The same rules of playfair 5x5 matrix are used here to encrypt When plaintext word consists of odd number of the plaintext with the following modification. characters, a spare letter X is added with the word to complete the pair. In the decryption process this X is When same letters fall in a pair it adds “*” so that the simply ignored. This creates confusion because X is a message BALLS become BAL*LS. valid character and it can be a part of plaintext, so we cannot simply remove it in decryption process. If a word consists of odd number of letters, it will add symbol “#” to complete the pair. So BIT becomes BI When repeating plaintext letters that fall in the same T#. The symbol # is simply ignored when the pair are separated by a filler letter, such as X. This ciphertext is decrypted. 38 International Journal of Computer Applications (0975 – 888) Volume 48– No.7, June 2012 letter X affects the plaintext at the time of 5. Read a plaintext. decipherment. 6. Divide the plaintext into pair of characters. 7. Add the character “Null” when odd number of 3. THE PROPOSED PLAYFAIR CIPHER character in the message. USING 16X16 MATRIX 8. The conversion process: This algorithm can accept the Plaintext containing Alphabets a) If the pair of plaintext falls in the same row of (capital letters and small letters), Numbers and Special the matrix are replaced by the character to the characters. So the user can easily encrypt combination of right, with the first element of the row circularly following left. alphabets, numbers and characters efficiently. b) If the pair of plaintext fall in the same column To encrypt the plaintext, the rules of 5x5 are followed with of the matrix are replaced by the character the following modification: beneath, with the top element of the row circularly following in the last.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    5 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us