Trusted by +2 million users,
1000+ happy students everyday
Showing pages 1 to 1 of 3 pages
Rail Fence Cipher :The rail fence cipher algorithm is an easy to encrypt plaintext to cipher text; it jumbles up the order ofthe letters of plain text based on key.Encryption by implementing Rail Fence Cipher:By implementing this algorithm we have to write our plaintext into zigzag lines across the page inmultiple rows and these rows are determined by user entered key; this key value should be greater thanone so that plaintext can write into zigzag lines and these number of lines are decided by key value.And then we start writing the letters of plaintext diagonally down to the right until we reach the numberof rows specified by the key and then come back diagonally until we hit the first row again. This processwe will continues until we reach the end of the user entered plaintext.Example:Plaintext: ENGLAND 123Key: 5E1NX2GD3LNAEncrypted text will be: E1NX2GD3LNAHere we write encrypted text row by row.Decryption:In this we reconstruct the diagonal grid using encrypted message. We write the cipher text, but leaving adash in place of the spaces and gradually, we replace all the dashes one by one with the correspondingletters and read off the text from the table. Here first we create a table that is combination of row andcolumn and rows as the key is and columns as the length of cipher text then we place the first letter inthe top left square and dashes diagonally. And when we get back to top row, we place the letter incipher text and we will continue like this across the row.
You’re reading a preview
Preview Documents

To View Complete Document

Click the button to download
Subscribe to our plans

Download This Document