Adil
DevBest CEO
- May 28, 2011
- 1,278
- 716
Long story short, I'm designing an encryption/encoding program, to encrypt/encode a string of alphanumerical characters. I've come across an obstacle, which I'm unsure about.
So what I want to do is return the user input with an encrypted string. Would I have to define the encoding in a class or separate file?
e.g
Code:
class Program
{
static void Main(string[] args)
{
string JokerCode;
Console.ForegroundColor = ConsoleColor.Yellow;
Console.WriteLine("JokerCrypter\n");
JokerCode = Console.ReadLine();
Console.WriteLine("Your string={0}", JokerCode //could I return encoded, to encode the string?);
Console.WriteLine("Enter to escape\n");
Console.ReadLine();
}
e.g
Code:
// a = 21