Solved

Getting around installing MHASH for authorize.net

Posted on 2009-05-06
4
385 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
4 Comments
 
LVL 15

Expert Comment

by:m1tk4
Comment Utility
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
Comment Utility
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
Comment Utility
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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
Read about how to choose the best possible content marketing agency to suit your needs. Content marketing has become an integral part of running a successful tech business, so it is wise to be informed.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

744 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now