It encrypts a text to rail fence.Logic in my code is taking a string and converts them to ascii numbers.If you take the logic of rail fence the text is stored in this way if its rail is 3.00,11,22,13,04,15,26. Which means rows will toggle between 0-2 and 2-0 but column will always increase.After storing this thecode will be printed if the code is not having 0 as we have intialized it to zero before.My code will work in all conditions.Once try it and remove dislike.If you still dont understand mail me at [email protected] that i will send you with image explanation tomorrow.–Jan 8 '17 at 20:08.
![]() ![]()
One which reads a string and a key and encodes the string into a rail-fence cipher using that key. Similarly, write a program for the reverse function: deciphering a rail fence using a key. For those who don't know what rail fence cipher is, it is basically a method of writing plain text in a way it creates linear pattern in a spiral way.
![]()
It encrypts a text to rail fence.Logic in my code is taking a string and converts them to ascii numbers.If you take the logic of rail fence the text is stored in this way if its rail is 3.00,11,22,13,04,15,26. Which means rows will toggle between 0-2 and 2-0 but column will always increase.After storing this thecode will be printed if the code is not having 0 as we have intialized it to zero before.My code will work in all conditions.Once try it and remove dislike.If you still dont understand mail me at [email protected] that i will send you with image explanation tomorrow.This the explanation i made and kept in my blog. If you want visit my blog visit it at for this program.
![]() Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |