Encrypting large data strings times out when using HEX encoding

Description

Trying to `encrypt()` a value larger than 1 MB times out the request, no matter how large the `requesttimeout` setting is.

Using a UU encoding and Base64 encoding both run fine and execute within a reasonable timeframe.

Environment

None

Attachments

5

Activity

Pothys - MitrahSoft 23 August 2021 at 12:12

I've checked this ticket with fixed version 5.3.9.1-SNAPSHOT. Now encrypt() the large value using encoding HEX also works fine in lucee.

Michael Offner 20 August 2021 at 15:57

Pothys - MitrahSoft 19 July 2021 at 15:43

I've checked this ticket and confirmed the issue happened in lucee latest version 5.3.8.193-SNAPSHOT too. While trying to encrypt() the value using encoding HEX, If the value is greater than 1MP means the lucee didn't return the result and throws a request time-out error. Seems ACF works fine.

And use encoding UU or Base64 works fine in lucee but takes more time than ACF.

Michael Born @ Ortus 16 July 2021 at 19:11

Great question. No, I’m expecting encrypt() to complete before the request times out.

I ran your example on ACF 2018, and I’m seeing all 10 iterations complete within about 5 seconds. As it is, we can’t use encrypt() with HEX encoding due to the unusable performance compared to ACF. (well, compared to anything. We have JSON files we’re trying to encrypt that are anywhere from 1-20 megabytes, and I don’t think any requesttimeout setting is going to work with that.)

Zac Spitzer 16 July 2021 at 18:45

Are we expecting consistent time vs size performance?

Fixed

Details

Assignee

Reporter

Priority

Labels

Fix versions

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Created 16 July 2021 at 16:50
Updated 23 August 2021 at 12:12
Resolved 23 August 2021 at 12:12