#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.
Note: See
TracTickets for help on using
tickets.
Fixed with r15706.