Skip to main content

Posts

Showing posts from August 11, 2014

Column Transposition Technique Single and Multi Round Cipher Technique in C Sharp #

using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication7 {     class Program     {        static string s = "";        static string[,] arr;         static void Main(string[] args)         {             int ch = 1;             while (ch == 1||ch==2)             {                 Console.WriteLine("Enter 1 for Ciphering \n Enter 2 for Deciphering");                 ch = Convert.ToInt32(Console.ReadLine());                 if (ch == 1)                     cipher();                 else if (ch == 2)                     decipher();                 else                     Console.WriteLine("Wrong input");             }             Console.ReadKey();         }         static void cipher()         {             int ch = 1,i=0,r=0,j=0,r2=0,c2=0,column=6,col=0;                       Console.WriteLine("Enter simple text");             s = Console.ReadLine();