Solved

Getting around installing MHASH for authorize.net

Posted on 2009-05-06
4
394 Views
Last Modified: 2013-12-16
I'm trying to set up a simple form to be posted to authorize.net so the customer can charge their card. I keep on getting the error that I need the MHASH function.
The php server version I'm on is 4.3.*. I don't have access to the actual server so I can not install anything or upgrade the system.
Is there any other way around this?
0
Comment
Question by:rivkamak
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 15

Expert Comment

by:m1tk4
ID: 24325396
Download SquirrelMail and look for the code handling DIGEST authentication. DigAuth involves calculating MD5 hashes and as far as I remember there was a pure PHP implementation of mhash there. If not, try googling "pure php mhash". Alternatively, see if they have Perl/Python packages installed that calculate mhash.
0
 

Author Comment

by:rivkamak
ID: 24444445
will authorize.net allow any other script with out MHASH with the data?
0
 
LVL 50

Accepted Solution

by:
Steve Bink earned 250 total points
ID: 24698099
You really shouldn't need the MHASH library at all.  

First, you don't need to hash anything to send a transaction to Authorize.net.  You will need to calculate an MD5 hash of some of the return data in order to verify the security of the communication, but that does not really impact the transaction as much as your application's perception of it.

That brings us to MD5:

http://www.php.net/manual/en/function.md5.php

Chances are, you're trying to use MHASH to generate an MD5 hash of your data.  If that's the case, you can use the internal md5() function instead.  No additional libraries are needed.

If you're not aiming for MD5 functionality, tell us what algorithms you need to include, and we can tell you where else they might be available.
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
plsql job on oracle 18 109
Linux kernel panic ext3-fs error 14 73
sed command 3 27
bash: ./Facebooker.pl :Permission Denied 9 52
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Learn about the eCommerce marketing trends for the year ahead.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question