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 Link to comment https://forums.phpfreaks.com/topic/95141-are-these-hashes-correct/ 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 Link to comment https://forums.phpfreaks.com/topic/95141-are-these-hashes-correct/#findComment-487347 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! Link to comment https://forums.phpfreaks.com/topic/95141-are-these-hashes-correct/#findComment-487371 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.