MHASH/HASH conversion help

Started on the old forum in April 2013 · view the original in the archive · old links redirect here

#hash #liberty #mhash #reserve

No replies · 1,318 views · started 13 years ago · 1 min read

dozzy Newbie · 3 posts #1

Hi, i am a newbie in programming. Please how can i change this mhash code

$authString = $secWord.":".$datePart.":".$timePart;

  $sha256 = bin2hex(mhash(MHASH_SHA256, $authString));

  return strtoupper($sha256);

} to hash code. This code is from the function.php file in the liberty reserve mass payment tool. Presently, on my server if i want to make use of the tool it gives me this error.. Fatal error: Call to undefined function mhash() in /home/dollarsc/public_html/includes/LibertyReserve/functions.php on line 117. Please kindly help me. I think the solution is to change the mhash variables to hash variables. If you feel you know any other solution, please post it here. Thanks

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close