13.07.2015 Views

Successful Implementation of the Hill and Magic Square Ciphers: A ...

Successful Implementation of the Hill and Magic Square Ciphers: A ...

Successful Implementation of the Hill and Magic Square Ciphers: A ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

International Journal <strong>of</strong> Advanced Computer Technology (IJACT)ISSN:2319-7900More discussions on introducing dummy letters(a) There may exists certain languages having 29, 31 <strong>and</strong>37 letters where <strong>the</strong> proposed system can work efficientlybut <strong>the</strong> general question is “what will be its outcomein international scenario”?(b) The system may work but what to be interpreted if <strong>the</strong>(c)decrypted message falls on <strong>the</strong>se dummy variables.The decryption process in <strong>Hill</strong> & weak magic squareciphers generally face difficulties to give <strong>the</strong> plaintextproperly due to <strong>the</strong> involvement <strong>of</strong> 2 <strong>and</strong> 13 (factor <strong>of</strong>26) in <strong>the</strong> matrix.(d) Shifting <strong>the</strong> values (elements) <strong>of</strong> a matrix or weakmagic square beyond 13 (n > 13), to avoid 2 <strong>and</strong> 13 isnot suggested though it gives more reliable results.We may consider a m*m weak magic squares as key <strong>and</strong> amessage with m words (letters/dummy-letters), <strong>the</strong>n <strong>the</strong>message can provide different ciphertext from plaintext asfar as possible depending upon <strong>the</strong> choice <strong>of</strong> <strong>the</strong> centralblock <strong>and</strong> assignment <strong>of</strong> pair-numbers satisfying T in selectivepositions..3. ExamplesConstruction <strong>of</strong> magic squaresExamples for constructing magic squares using basic Latin<strong>Square</strong>s are shown separately for odd order, even order(doubly even <strong>and</strong> singly even cases) magic squares.Case I: For any odd nExample 1: (3 * 3) <strong>Magic</strong> <strong>Square</strong>( nS-1: Write matrix (Fig-1). Here, P = 2 1)2= 5,S-2:S-3:n( n2 1)S =2= 15 for n=3Arranging in basic Latin <strong>Square</strong> format [fig-2] givescolumn totals equalSelecting <strong>the</strong> pivot row, assigning as main diagonalelements <strong>and</strong> rearranging column elements in an orderlymanner gives <strong>the</strong> magic square (fig-3);1 2 34 5 67 8 9Example-2:Fig-1 Fig-2 Fig-3(5 * 5) <strong>Magic</strong> <strong>Square</strong>( nS-1: Write [Fig-1] Here, P = 2 1)2S-2:n( n2 1)1 2 35 6 49 7 88 1 63 5 74 9 2= 13S = = 65 for n = 52Arranging in basic Latin <strong>Square</strong> format gives columnsums equal [fig-2]S-3:Selecting <strong>the</strong> pivot row, assigning as diagonal elements<strong>and</strong> rearranging column elements in an orderlymanner gives (fig-3),1 2 3 4 57 8 9 10 613 14 15 11 1219 20 16 17 1825 21 22 23 24Fig-2Fig-3Example-3: (7*7) <strong>Magic</strong> <strong>Square</strong>A (7 * 7) magic square constructed by applying Latin <strong>Square</strong>principle is given as:30 39 48 1 10 19 2838 47 7 9 18 27 296 6 8 17 26 35 375 14 16 25 34 36 4513 15 24 33 42 44 4Fig-221 23 32 41 43 3 1222 31 40 49 2 11 20Here. P = 25 <strong>and</strong> S = 175Case II: For any doubly-even nExample 4: (4 * 4) <strong>Magic</strong> <strong>Square</strong>S-1: Arranging in basic Latin <strong>Square</strong> format gives with columntotals equaln nHere, S = ( 2 1) 1 2= 34 for n = 4 <strong>and</strong> P lies between8 <strong>and</strong> 9. Find T = 17S-2: Selecting <strong>the</strong> pivot column, assigning as main diagonalelements <strong>and</strong> rearranging gives1 2 3 46 7 8 511 12 9 1016 13 14 15S-3: Making transformations gives ,Extreme corner blocks: 156 15 6 10 31 12 8 134 9 5 1614 7 11 211217 24 1 8 1523 5 7 14 164 6 13 20 2210 12 19 21 311 18 25 2 9,15 11 7 316 12 8 413 9 5 114 10 6 2103 4 9 516 813 147 112 INTERNATIONAL JOURNAL OF ADVANCE COMPUTER TECHNOLOGY | VOLUME 2, NUMBER 3,86

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!