[C#] Using a custom encoding method

Status
Not open for further replies.

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.
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();
            


        }
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:
// a = 21
 

Zak

Posting Freak
Mar 12, 2011
848
453
Hmm, why not uses the ASCII encoding? or this method.


Credit to Microsoft.
 
Status
Not open for further replies.

Users who are viewing this thread

Top