Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): bobo beebop / bobo beebop (bobo beebop)
Created: 10/07/2015
Components: Documentation
Versions: 10.0
Failure Type:
Found In Build/Fixed In Build: Final /
Priority/Frequency: Major / All users will encounter
Locale/System: English / Win 2008 Server x64
Vote Count: 2
Problem Description: 256 hashes are off-by-one
Steps to Reproduce: Run the code below and verify the output.
Actual Result: 28A9F6705886314ABD5617F406B4AF653F870DBB4207BFB1018804BF5CFB66D3
Expected Result: FBC1A9F858EA9E177916964BD88C3D37B91A1E84412765E29950777F265C4B75
Any Workarounds: Decrease the number of iterations by 1.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4070214
External Customer Info:
External Company:
External Customer Name: bobo beebop
External Customer Email:
External Test Config: My Hardware and Environment details: Not applicable.
<!--- Incorrect. This is actually doing 2 iterations. --->
<cfset cornedBeef = hash("foo bar", "SHA-256", "us-ascii", 1)> <!--- 28A9F6705886314ABD5617F406B4AF653F870DBB4207BFB1018804BF5CFB66D3 --->
<cfoutput>#cornedBeef#</cfoutput>
<!--- Setting numIterations to 0 produces the result of 1 iteration. --->
<cfset cornedBeef = hash("foo bar", "SHA-256", "us-ascii", 0)> <!--- FBC1A9F858EA9E177916964BD88C3D37B91A1E84412765E29950777F265C4B75 --->
<cfoutput>#cornedBeef#</cfoutput>
Attachments:
- October 08, 2015 00:00:00: 1_hashTest.cfm
- October 08, 2015 00:00:00: 2_hashTest2.cfm
Comments: