title: Detect wrong key in AES with no padding
body: <p>In case <code>AES/ECB/PKCS5Padding</code> is used you get a BadPaddingException when trying to decrypt a message with the wrong key. But there is no exception when <code>AES/ECB/NoPadding</code> is used - message is successfully decrypted to some wrong data.</p>
  
  <p>Is there a way to detect the wrong cipher key during AES decryption when no padding is used?</p>
  
  <p>Edit:
  I'm communicating with the device which has encryption set to <code>AES/ECB/NoPadding</code>. I think I can't change this.</p>