Decrypt - strange behavior with invalid input parameter

Hi,
In attachment example project and question is, why when I decrypt string which is invalid, the decrypt function doesn't raise any exceptons and program ends without any exception message?
decrypterr.zip (27.9 KB)

To reproduce this do steps like below:

  1. Run program and fill-in like below and click encrypt.

  2. You should see in Encrypted field this string

E92676D0F8FEA0E09F31C26A27024E09

  1. Now change last sign from 9 to 1 ... the string should be E92676D0F8FEA0E09F31C26A27024E01 and click Decrypt.

The project exits without any error message, how can I display message e.g. 'Invalid string to decrypt' when I can't catch any errors in this situation?

Regards,

Hi,
Thank you for reporting this issue. I will take a look at this today and fix it in the next version.
Best regards,
Marion

Hi,
This issue has been fixed in the 4.3 version.
Best regards,
Marion

Thanks Marion ... I will check this ... and when something will be wrong I let you know.

Regards,

Did you check my example project on the version 4.3?
I have the same problem described at the top of this topic :thinking:

So I checked it in the demo. The both problems persist.

Sorry, the tests pass in C but not in Delphi. I have found the issue and will release a new version with the fix.

The 4.3.0.1 version is released and it raises an exception when a wrong string is passed to the decrypt function.

Thank you very much ... now in Delphi everything is ok.

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.