home *** CD-ROM | disk | FTP | other *** search
/ PCMania 10 / Pcmania_Ep2_10_CD-01.iso / ARTICULOS / tecnologia / BRYDDES1.ZIP / BRYDDES.TXT < prev   
Encoding:
Text File  |  1997-02-25  |  3.9 KB  |  126 lines

  1. BrydDES, version 1.0 (beta no. 9) for Windows 95/NT.
  2.  
  3. Copyright Svend Olaf Mikkelsen. February 25, 1997.
  4.  
  5.  
  6. BrydDES issues a known plaintext attack for DES encryption. The 
  7. method is brute force.
  8.  
  9. ECB mode and CBC mode with known IV are supported.
  10.  
  11. On a Pentium 120, this version of the program can test 502,000 keys 
  12. per second in Windows NT, when no other programs are running. It is
  13. set to run at idle priority.
  14.  
  15. Please note that this is a beta-release.
  16.  
  17. Note also that if a key is found which encrypts the given 8 bytes 
  18. plaintext into the given ciphertext, it is not sure that there will 
  19. not exist another key, which will do the same thing. It will be 
  20. necessary to verify the key on another plaintext/ciphertext pair.
  21.  
  22. So far source is not included.
  23.  
  24. The code is tested on a Pentium, but should run on a 486.
  25.  
  26.  
  27. Usage:
  28.  
  29. BrydDES plaintext ciphertext i_vector start_key [T]
  30. or
  31. BrydDES RESUME
  32.  
  33. plaintext   16 hexadecimal digits (The known plaintext).
  34. ciphertext  16 hexadecimal digits  
  35. i_vector    16 hexadecimal digits (The known initialisation vector)
  36. start_key   8  hexadecimal digits (Bit 1-32 in the first key to test)
  37.         or  7  hexadecimal digits (Without parity bits)
  38. T           Exit when the start key is tested (For test purposes)
  39.  
  40. RESUME      Continues operation from last key tested, when started
  41.         in a directory with a BrydDES.log file.
  42.  
  43. In this version keys beginning with the startkey bits and the
  44. complementary keys are tested. I.e. when keys beginning with 
  45. 01010101 are tested, keys beginning with FEFEFEFE are also tested.
  46.  
  47. You can avoid testing the same keys twice by always choosing a
  48. 7 digit startkey between 0000000 and 7FFFFFF.
  49.  
  50. Bits are numbered from the left to the right.
  51. For ECB mode, use i_vector 0000000000000000
  52.  
  53. If a key is found, it is displayed on the screen and saved in the
  54. BrydDES.log file in the directory in which BrydDES was started.
  55. The log file can be viewed in an editor.
  56.  
  57.  
  58. Each time a new start key is being tested, it is printed on the 
  59. screen. On a Pentium 120 it takes about 18 minutes to test all keys 
  60. with a given start_key and the complementary keys.
  61.  
  62. The program is interrupted with Ctrl-C. 
  63.  
  64. Parity in a 32-bit start key (8 hexadecimal digits) does not matter.
  65. When the 32-bit start key is displayed, it is adjusted for parity.
  66. In the log file start keys are written as 7 digit hexadecimals
  67. without parity.
  68.  
  69. The software is provided as is. No responsibility is taken for 
  70. errors, especially not if the program due to an error fails to
  71. detect the key in a contest, or gives a false positive key.
  72.  
  73.  
  74. Examples:
  75.  
  76. TEST.BAT:
  77.  
  78. @echo off
  79. REM This batch-file invokes the BrydDES cracker,
  80. REM beta-version, with the RSA test data.
  81. REM
  82. REM Note that the BrydDES beta-version only search for the key.
  83. REM So far, if a key is found, the unknown plaintext must be
  84. REM decrypted with another DES program.
  85. REM
  86. echo on
  87. BrydDES 54686520756e6b6e 3ea786f91d76bbd3 a2185abf459660bf 5ed9204f
  88. @echo off
  89. REM     ^ first 8 byte   ^ first 8 byte   ^ IV             ^ bit 1-32
  90. REM     ^ of plaintext   ^ of ciphertext                   ^ of first
  91. REM                                                        ^ key to
  92. REM                                                        ^ test
  93.  
  94.  
  95. CHAL.BAT:
  96.  
  97. @echo off
  98. REM This batch-file invokes the BrydDES cracker,
  99. REM beta-version, with the RSA challenge data.
  100. REM
  101. REM Note that the BrydDES beta-version only search for the key.
  102. REM So far, if a key is found, the unknown plaintext must be
  103. REM decrypted with another DES program.
  104. REM
  105. REM NB! NB! NB! Please verify the numbers yourself!
  106. REM Enter your own 7 or 8 digit hexadecimal number as
  107. REM parameter to the batch file.
  108. echo on
  109. BrydDES 54686520756e6b6e 794581c0a06e40a2 99e97cbf4f7a6e8f %1
  110.  
  111.  
  112. Example:
  113.  
  114. CHAL D1C2B3A
  115.  
  116. And the next time, in the same directory:
  117.  
  118. BrydDES RESUME
  119.  
  120. ---
  121.  
  122. Available at: http://inet.uni-c.dk/~svolaf/des.htm
  123.  
  124.  
  125.  
  126.