Reply to Re: HMAC-SHA1 ARGG!!!!!

Your name:

Reply:


Posted by Umberto Salsi on 04/10/07 08:45

"cbmeeks" <cbmeeks@gmail.com> wrote:

> [...]

A test program like this one should help you to detect the problem:

<?php
header("Content-Type: text/plain");

$expected = "PUT bla bla ...";
$actual = (string) $_POST["data"];

echo
"Expected = ", urlencode($expected), "\n",
"Actual = ", urlencode($actual), "\n";

if( $expected === $actual )
echo "Test: equals\n";
else
echo "Test: DIFFERS\n";

# ...and a similar code for the $expected_hmac and $actual_hmac
?>

Regards,
___
/_|_\ Umberto Salsi
\/_\/ www.icosaedro.it

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация