title: CryptographicException was unhandled by user code
body: <p>While Decrypting Key I am getting error : </p>
  
  <blockquote>
    <p>CryptographicException was unhandled by user code.<br>
    Length of the data to decrypt is invalid.</p>
  </blockquote>
  
  <p>Now what I want to do is, I want to check whether the given string is able to decrypt or not. If it is able to decrypt than only I want to execute below code. So that I cannot get an error.</p>
  
  <pre><code>var byteBuff = Convert.FromBase64String(value);
  var strDecrypted = Encoding.ASCII.GetString(
                     objDesCrypto.CreateDecryptor().TransformFinalBlock(byteBuff, 0, byteBuff.Length));
  </code></pre>
  
  <p>Is there any way to check it ? </p>