The rail fence

182 views
133 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
182
On SlideShare
0
From Embeds
0
Number of Embeds
13
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

The rail fence

  1. 1. What is this line doing?What are the two 26s for?
  2. 2. This is where we use the ApplyShifttoASCIICodeForCharacter functionTo get the encrypted text.How do we decrypt?
  3. 3. The “rail fence”T t a Jh i h r M oi s e m r ns y e sSize = 4
  4. 4. The “rail fence”T t a Jh i h r M oi s e m r ns y e sSize = 4
  5. 5. The “rail fence”ThisisthearmyMrJonesSize = 4
  6. 6. The “rail fence”T t a Jh i h r M oi s e m r ns y esSize = 4
  7. 7. How the algorithm works2 CountersT t a Jh i h r M oi s e m r ns y e sCounter one starts at the beginning and loops once onlyCounter two starts at counter one and loops to the end
  8. 8. T t a Jh i h r M oi s e m r ns y e s
  9. 9. T t a Jh i h r M oi s e m r ns y esFor Count1 = 1 To SizeOfRailFenceWhile Count2 < OriginalText.LengthCount2 = Count2 + SizeOfRailFence

×