title: BLOWFISH: Restore key from plainttext and hash?
body: <p>Is it possible to restore the key from blowfish encrypted ciphertext and plaintext pairs?</p>
  
  <p>I have several strings both encrypted and plain. But I can't remember key.</p>
  
  <p>example of encrypted string <code>24026B7101030657757D01</code>
  decrypted string is <code>AC C1312463</code></p>
  
  <pre><code>$key = '';
  $plaintext = '';
  $crypttext = '24026B7101030657757D01';
  
  $cache = array();
  
  while($plaintext != 'AC C1312463')
  {
    $key = random_string();
    while(array_search($key,$cache) !== FALSE)
    {
      $key = random_string();
    }
    $cache[] = $key;
  
    $bf = new Crypt_Blowfish($key);
  
    $plaintext = $bf-&gt;decrypt($crypttext);
   }
      print_r($key);
      die();
  </code></pre>
  
  <p>Let's say I have algorithm like this. How should function random_string should look like to get 32bit random key?</p>