"Ciphertext Length too short" CryptoAPI

"Ciphertext Length too short" CryptoAPI


Hi All,

     I am using CryptoAPI and the AES256 method, but when I decrypt I get the exception message "Ciphertext Length too short". 

     I use to Encrypt a string, the length is 9, and the password. But the message indicates that I need to encrypt more information, that's what I understand. Is it true?



Hello Tomas,

Maybe the encryption key is not being correctly generated?

Please find attached an example of usage for the CryptoAES with the 256-bit functions.

Let me know if this helps,