The text of this article is not in this database — only its details are. The old site it was published on is gone, but the Internet Archive kept a copy: Creating a Substitution Cipher with C#
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.

Anandu G NathPosted Jan 6, 2024, 10:14 AM
Nice explanation
Nilesh JadavPosted Oct 7, 2016, 7:37 PM
What if I want to give my plaintext in upper case ? Will this work for such conditions ? Because I am getting error while making in upper case in here (char[i] = key[j])
Ken HPosted Jul 23, 2015, 11:00 PM
Hello Vulpes, display incorrect characters when debugging.I think should be do this: Console.WriteLine("Decrypted : {0}", plainText); // error. Console.WriteLine("Decrypted : {0}", decryptedText); // right.int j = key.IndexOf(cipherText[i]) +97;int j = key.IndexOf(cipherText[i]) +97; // This Right.
SharadPosted Jul 22, 2015, 12:25 AM
good one...
VulpesPosted Apr 7, 2014, 6:18 AM
It might be a 'display' problem i.e. you've encrypted non-ASCII characters which can't be displayed in the encoding or font you're currently using and so a '?' is displayed instead. Failing that, can you post a plain code string which after encryption and decryption produces a '?' character and I'll look into it.
Srikanth SuryadevaraPosted Apr 6, 2014, 8:22 PM
Hi sirEncryption worked well for but decrypting i am getting text like this ??????? i have used the 1st program i.e so what is substitution cipher ? code mentioned there
Ricky BollingerPosted Oct 18, 2011, 1:18 AM
Very Impressive