aximbigfan Posted March 9, 2008 Share Posted March 9, 2008 Hi, I created a PHP app to generate hashes from text. Can someone tell me if these are correct? CRC32: Text: test Salt: test Outcome: -662733300 Standard DES: Text: test Salt: test Outcome: teH0wLIpW0gyQ Thanks! Chris Quote Link to comment Share on other sites More sharing options...
corbin Posted March 9, 2008 Share Posted March 9, 2008 How are you using the salt? I can't find a native DES function, so I didn't bother with that one, but this is what I got for 'test': C:\Users\Corbin>php -r "printf(\"%u\n\", crc32('test'));" 3632233996 C:\Users\Corbin>php -r "printf(\"%u\n\", crc32('testtest'));" 3966352177 Edit.... Oh I see what you did.... CRC32 returns an unsigned integer...... read the manual page... Anyway: C:\Users\Corbin>php -r "echo crc32('test');" -662733300 Quote Link to comment Share on other sites More sharing options...
aximbigfan Posted March 9, 2008 Author Share Posted March 9, 2008 yeah, sorry, I cut an pasted, so the key made it in, even though there was no key. I also fixed the other CRC32 problem. thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.