Changeset 2010 for trunk/CrypPlugins/DES


Ignore:
Timestamp:
Oct 23, 2010, 7:39:00 PM (11 years ago)
Author:
Sven Rech
Message:

new key finding algorithm for KeySearcher

This update is really huge.

Location:
trunk/CrypPlugins/DES
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/DES/DES.cs

    r1932 r2010  
    536536            // Change the padding mode to zeroes, since we want to do bruteforcing..
    537537            ((DESSettings)plugin.Settings).Padding = 0;
    538         }
    539 
    540        
     538        }       
    541539
    542540        public byte[] Encrypt(byte[] key, int blocksize)
     
    565563        }
    566564
    567         public byte[] getKeyFromString(string key)
    568         {
    569             byte[] bkey = new byte[8];
    570 
    571             for (int i = 0; i <= 7; i++)
    572             {
    573                 string substr = key.Substring(i * 3, 2);
    574                 bkey[i] = Convert.ToByte(substr, 16);
    575             }
    576 
    577             return bkey;
    578         }
    579 
    580565        public IControlEncryption clone()
    581566        {
     
    594579        }
    595580
     581        public KeyTranslator getKeyTranslator()
     582        {
     583            return new KeySearcher.KeyTranslators.ByteArrayKeyTranslator();
     584        }
    596585    }
    597586    #endregion
  • trunk/CrypPlugins/DES/DES.csproj

    r1487 r2010  
    137137      <Private>False</Private>
    138138    </ProjectReference>
     139    <ProjectReference Include="..\KeySearcher\KeySearcher.csproj">
     140      <Project>{0579E099-66B2-43C3-B8A0-43CAE4895E68}</Project>
     141      <Name>KeySearcher</Name>
     142    </ProjectReference>
    139143  </ItemGroup>
    140144  <ItemGroup>
Note: See TracChangeset for help on using the changeset viewer.