Mordax
14 Jul 2010, 02:32 PM
So for the past few weeks my life has been one monolithic project in php, this looks like the last hurdle, but its a biggun
I need to emulate UTF8 encoded Java Byte Arrays in php, they need to be conctenated and hashed
I've not been able to get anything that hashes right with php's native variables, I just don't have enough control over how the data is stored or processed
Thus far I've tried using utf8_encode() to see if this produces a php string with a close enough structure, and that didn't work, and I've tried using pack() to see if I can convert the data to a binary array and acheive a closer structure that way, but I don't know enough about the function to make it work
I've used some really funky techniques to get the system to the stage its at, and although I'm not sure how much I'll be allowed to share, I really want to write up on some of them after I'm done
I need to emulate UTF8 encoded Java Byte Arrays in php, they need to be conctenated and hashed
I've not been able to get anything that hashes right with php's native variables, I just don't have enough control over how the data is stored or processed
Thus far I've tried using utf8_encode() to see if this produces a php string with a close enough structure, and that didn't work, and I've tried using pack() to see if I can convert the data to a binary array and acheive a closer structure that way, but I don't know enough about the function to make it work
I've used some really funky techniques to get the system to the stage its at, and although I'm not sure how much I'll be allowed to share, I really want to write up on some of them after I'm done