All pastes #981688 Raw Edit

asdasda

public text v1 · immutable
·published 2008-04-11 23:39 UTC
rendered paste body
            // Hela skiten går ut på att läsa in en hash och jämföra den med en ordlista
 
 
 
            Console.Write("Insert hash: ");
 
            string hash = Console.ReadLine();
 
 
 
            StreamReader reader = new StreamReader(@"C:\lollistan.txt");
 
            string strAllFile = reader.ReadToEnd().Replace("\r\n", "\n").Replace("\n\r", "\n");
 
            string[] arrLines = strAllFile.Split(new char[] { '\n' });
 
 
 
            reader.Close();
 
 
 
            string dampVar = "";
 
 
 
            for (int i = 0; i < 100; i++)
 
            {
 
                MDString(arrLines[i]);
                dampVar = MDString-funktionen-men-hur?
 
 
                
 
 
 
                if (dampVar == hash)
 
 
 
                {
 
                    string ord1 = arrLines[i];
 
                   Console.WriteLine(hash + " = " + ord1);
 
                }
 
 
 
 
 
                Console.ReadKey();
 
            }