title: How to verify that the decryption result is correct?
body: <p>I've been playing around with php mcrypt over the weekend with AES used to encrypt text strings with a key. <br> Later I worked up a tiny php tool to encrypt / decrypt your strings with AES/mcrypt now when the key is "wrong" and the text doesn't get decrypted, you end up with what I think is binary from what I've read around (<a href="http://i.imgur.com/jF8cZMZ.png" rel="nofollow">http://i.imgur.com/jF8cZMZ.png</a>), is there anyway in PHP to check if the variable holds binary or a properly decoded string? </p>
  
  <p>My apologies if the title and the intro are a bit misleading.</p>