title: How to detect block cipher mode
body: <p>How to detect if a message was crypt by <strong>CBC</strong> or <strong>ECB</strong> mode? </p>
  
  <p>I have made a function who encrypt in <strong>AES 128 CBC</strong> or <strong>ECB</strong> randomly, and I do hamming between <strong>clear text</strong> and <strong>cipher text</strong>, but seams not correlated to <strong>cipher mode</strong>.</p>
  
  <p>How can I detect the <strong>block cipher mode</strong>?</p>
  
  <p>Thank you in advance</p>