Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#7956 closed defect (fixed)

Double check Hex encoding with Blowfish.

Reported by: Tom Trenka Owned by: Tom Trenka
Priority: high Milestone: 1.3
Component: Dojox Version: 1.2.0
Keywords: Cc:
Blocked By: Blocking:

Description

in the encrypt function, you have the following code: case dojox.encoding.crypto.outputTypes.Hex:{ return dojo.map(cipher, function(item){ return item.toString(16); }).join(""); string }

I *believe* it should look like this: return dojo.map(data, function(item){ return ((item < 16) ? "0" : "")+item.toString(16);}).join(""); string

when I called encrypt with Hex, it was excluding a 0 from the encrypted data...so I hacked it to return raw then do the conversion myself using the code I provided and it worked.

Change History (2)

comment:1 Changed 11 years ago by Tom Trenka

Resolution: fixed
Status: newclosed

Fixed with r15706.

comment:2 Changed 11 years ago by Tom Trenka

Bah. r15705.

Note: See TracTickets for help on using tickets.