Scott Baker
Scott Baker
I spent a chunk of time today hacking on this issue and came up with this solution: ``` void show_clock(uint8_t hours, uint8_t minutes) { uint8_t d1 = hours / 10;...
I think using MD5 with increased iterations is the wrong approach here. If you're looking at fundamentally changing the underlying algorithm, we'd be much better suited to switch to bcrypt...
Any comment on this? Can we work around this?
I suspect this has something to do with 64bit vs 32bit. Testing 32bit PHP is not something I can do easily. Are you able to run the unit tests? Do...
I forgot I have an old Raspberry Pi 3 that I could test with. These tests were run on that Pi which is running PHP v7.4.33. If I take the...
I upgraded to Debian 12 which gives me PHP v8.2.7 and I'm getting the same error with the weird third chunk. Not sure what the next steps are. Either: *...
That gets us closer... I was able to refactor the code to not use `unpack()` with some trickery from that comment. Now I get the correct values (kind-of): ``` string(9)...
With some help from ChatGPT I was able to figure out how to use `gmp` with PHP to do math with numbers larger than 2^32. Check out the latest code...
I went ahead and added a bunch of `decode()` units tests and they all pass fine on 64 and 32bit. I guess the `decode()` code isn't affected. I think we're...
That doesn't really surprise me. I imagine doing a **ton** of intensive math with `gmp` on a 32bit processor adds a bunch of overhead to work around the limitations of...