title: Ruby blowfish difference in the last digits
body: <p>I have some testdata key/text/encrypted from an API provider and am now trying to yield the same encrypted result with the function below, but my result diverts from the provided one in the last 16 of 241 digits. Do you have an idea, what the reason may be?
  I ensured, that 'bf-ecb' is the right mode, and experimented with url-encoding, but so far without success.</p>
  
  <pre><code>require 'openssl'
  
  def encrypt(key, data)
      cipher = OpenSSL::Cipher::Cipher.new('bf-ecb').send(:encrypt)
      cipher.key = key
      result = cipher.update(data) &lt;&lt; cipher.final
  
      hexed = ''
      result.each_byte { |c| hexed &lt;&lt; '%02x' % c }
      hexed.upcase
  end
  </code></pre>
  
  <p>UPDATE</p>
  
  <p>Also trying to decrypt the example result results in an OpenSSL::Cipher::CipherError "bad decrypt"</p>