This is a discussion on "Help converting a javascript to PHP" within the PHP Forum section. This forum, and the thread "Help converting a javascript to PHP are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Help converting a javascript to PHP
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
||||
|
Help converting a javascript to PHP
I need help converting a Javascript to PHP (it's not my bag)
The script basically outputs a sha256 hash (I know the pear mHash library can do this, but this specific part of pear is not installed on the server) Here is the script:- http://opensource.hld.ca/trac.cgi/fi...256.js?rev=190 I've tried everything.... I can even get it to run with no errors, but the return value just isnt correct. If there are any guru's who can help I'd appreciate it. (It's pretty intense) Cheers
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
|
|
|||
|
snitz has an ASP-driven sha256 script - might be easier to convert that?
|
|
||||
|
oh believe me..... I tried. (I failed... lol)
Javascript is much closer to PHP, so i thought that would prolly be better as a starting pad.
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
|||
|
When you say the return value isn't correct do you mean that it doesn't match what a different sha256 alogrithm gave?
|
|
||||
|
exactly..... most of the hash was full of zero's
totally wrong. fundamentally converted WRONG. lol
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
|||
|
any of these help?
http://devel.akbkhome.com/svn/index....ash/SHA256.php http://www.oxxus.net/source/unix/source-sha256.htm http://www.akbkhome.com/svn/pear/Mes...A256.php&e=912 |
|
||||
|
nope... sorry. I founda all them two.
The first and last link \re the pear librarys that rely on mhash (the thing we aint got) and the middle one is JSP!
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
||||
|
I just tried converting the ASP one.
Every hash returned comes back as '0' LMAO!! Oh.... deep joy. [xx(]
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
![]() |
| Tags |
| help, converting, javascript, php |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Converting this to css..... | jahphill | Web Page Design | 3 | Jun 9th, 2008 11:19 |
| converting an swf into an fla | danny322 | Flash & Multimedia Forum | 5 | Feb 2nd, 2008 08:32 |
| converting to css | sliz | Web Page Design | 5 | Aug 28th, 2007 14:30 |
| Converting Tables to CSS Div | tolis | Web Page Design | 8 | Dec 2nd, 2005 22:00 |
| Converting Doc to PDF or TXT to PDF on Upload | ChipperT | ASP.NET Forum | 0 | May 10th, 2005 20:29 |