我有一个软件,如何用穷举试出密码

解决方案 »

  1.   

    可以引入排列组合类http://www.cnblogs.com/rogerwei/archive/2010/11/18/1880336.html调用6位密码组合
      string[] arr = {"A","B" ,"C","D" ,"E","F" ,"G",
                                "H" ,"I","J" ,"K","L" ,"M","N" ,
                                "O","P" ,"Q","R" ,"S","T" ,"U",
                                "V" ,"W" ,"X","Y" ,"Z"};
               List<string> result1= Algorithms.PermutationAndCombination<string>.GetCombination(arr,6).Select(a=>string.Join("",a)).ToList();//组合
               List<string> result2 = Algorithms.PermutationAndCombination<string>.GetPermutation(arr, 6).Select(a => string.Join("", a)).ToList();//排列
      

  2.   

    简单的办法 就是 自己写6个循环嵌套   从AAAAAA 开始 循环到zzzzzz 然后所有的字母6位密码就都有了
      

  3.   

    就算是不用排列组合
    6个for循环也可以
      

  4.   

    不是我要鄙视你啊 但是这个问题真的太简单了 就是6位数组合嘛 纯数字 没有字母的更加简单  自己回去翻翻书吧~~~http://www.answersfull.com/html/Other/201207/10-115749.html
      

  5.   

    你没看到吗???很简单的算法啊~~~http://www.answersfull.com/html/Other/201207/10-115749.html