SHA256 (without mhash)
Moderator: General Moderators
- Maugrim_The_Reaper
- DevNet Master
- Posts: 2704
- Joined: Tue Nov 02, 2004 5:43 am
- Location: Ireland
SHA256 (without mhash)
I've google'd, searched mailing lists, pushed other developers into apoplexy - but still no clue...
Now chances are it doesn't exist - in which case it's time to hit the editor and do it myself.
I'm looking for a php implementation of SHA256 (for hashing). Yes, I know about mhash, but this is aimed at being mhash independent. If anyone's seen it done somewhere let me know - any further locations to continue the quest suggest away.
Thanks people...
Now chances are it doesn't exist - in which case it's time to hit the editor and do it myself.
I'm looking for a php implementation of SHA256 (for hashing). Yes, I know about mhash, but this is aimed at being mhash independent. If anyone's seen it done somewhere let me know - any further locations to continue the quest suggest away.
Thanks people...
- Maugrim_The_Reaper
- DevNet Master
- Posts: 2704
- Joined: Tue Nov 02, 2004 5:43 am
- Location: Ireland
C: http://www.adg.us/computers/sha.html
JS: http://www.mad-teaparty.com/Chrstph/sha256.html
But alas no PHP...
I've added a php implementation to my todo list - might get around to it during the week.
JS: http://www.mad-teaparty.com/Chrstph/sha256.html
But alas no PHP...
I've added a php implementation to my todo list - might get around to it during the week.
- smpdawg
- Forum Contributor
- Posts: 292
- Joined: Thu Jan 27, 2005 3:10 pm
- Location: Houston, TX
- Contact:
I have no idea if this will help you but there is a reference to SHA256 in the source here when you browse the source repository.
http://pear.php.net/package/Message
And this just javascript implementation looks like it would be easy to convert to PHP.
http://opensource.hld.ca/trac.cgi/file/ ... js?rev=190
http://pear.php.net/package/Message
And this just javascript implementation looks like it would be easy to convert to PHP.
http://opensource.hld.ca/trac.cgi/file/ ... js?rev=190
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
I've decided to implement my own version of the specification.. as trying to port over the Javascript or C versions linked to thus far have proven really time consuming and a pain to troubleshoot/debug to find the points of issue.. I'll post my implementation when I finish hopefully in a day or two.. (with tests) .. it uses some static classes and OOP (PHP4 though) .. will see about making a PHP5 version if needed.
- Maugrim_The_Reaper
- DevNet Master
- Posts: 2704
- Joined: Tue Nov 02, 2004 5:43 am
- Location: Ireland
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
just for those that don't look at the code snippets board regularly:
I've updated the class (available here) to version 1.1.0. Added features are hashing of files and URLs. Speed apparently is up too. Go check it out.
I've updated the class (available here) to version 1.1.0. Added features are hashing of files and URLs. Speed apparently is up too. Go check it out.