Issues

Select view

Select search mode

 

Hash numIterations is not compatible with Adobe CF

Description

Currently, numiteration parameter is incompatible with the iterations parameter of hash functions. hash( input, 'SHA-512','UTF-8',99 ) in ACF is equal to hash( input, 'SHA-512','UTF-8',100 ) in lucee.

Details

Assignee

Reporter

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

Priority

Created 17 October 2022 at 20:31
Updated 1 July 2023 at 15:40

Activity

Show:

Zac Spitzer28 October 2022 at 13:46

Pothys - MitrahSoft18 October 2022 at 15:12

I've checked this ticket and confirmed the issue happened on lucee latest version 5.3.10.84-SNAPSHOT. In lucee, hash( input, 'SHA-512','UTF-8',99 ) is incompatible with ACF.

I added a testcase to this ticket
Pull Request:

Brad Wood17 October 2022 at 23:05

This has been a known behavior for a long time. There is a note about the incompatibility here

And here

but for some reason, not here

In the past, the Lucee devs were reticent to change the behavior since it would be a regression for anyone using it. Lucee 6 would be the time to finally fix this and provide a backward compat flag for people who wanted to keep the old behavior. It’s interesting to note when Lucee 5 came out they also broke hash() then and created a hash40() BIF, though I’m not a super big fan of introducing a new BIF again.

Flag notifications