Click here to Skip to main content
15,897,891 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
how to encode stuff into the rail fence cypher in c# language?
thanks... :)
Posted
Comments
Sergey Alexandrovich Kryukov 5-Jan-11 12:50pm    
This filter has no practical value... School assignment?
Sergey Alexandrovich Kryukov 5-Jan-11 13:03pm    
Best advice: read Wikipedia article on the topic and code from scratch, get some experience.
Other advices will only spoil you and may even lead to inferior results. Do some job!

Is this[^] what you're looking for? A quick google using the string "rail fence cypher c#" would've given that to you as the first result.
Interestingly, the second result of that search is this[^] from right here on CP.
 
Share this answer
 
v2
Comments
Sergey Alexandrovich Kryukov 5-Jan-11 12:56pm    
Mark, both references are quite bad, sorry. One big mistake is massive use of string operators "+=" or "+" where System.Text.StringBuilder should do the job. First application is a pure snippet (maybe fine), but the CP article is just helpless as an article. I don't bother trying then in run-time -- developing from scratch would be faster but -- ...boring.
Marc A. Brown 5-Jan-11 12:59pm    
No need to apologize to me. I didn't write 'em! :D Didn't look at the code itself either, just tried to provide some links. Thanks for following up on them!
Does the Rail Fence Cipher on CodePlex gives you any help?
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 5-Jan-11 13:01pm    
Sorry Yusuf, nothing good there: a reference to VB code (pointless to read, Question is marked C#) and Wikipedia article which is the best -- you only needed to reference Wikipedia article directly.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900