Of course! - thank you
On 21 Apr 2009, at 17:42, Victor Duchovni wrote:
On Tue, Apr 21, 2009 at 04:36:34PM +0100, Ronald Hatcher wrote:
Hi there -
I'm trying to create an hmac digest which works OK from php as:
$signature = hash_hmac('sha1', "ronald" , $apikey);
However, I get a different digest using:
echo "ronald" | openssl dgst -sha1 -hmac $apikey
Is there something obvious I'm doing wrong here?
Yes. The "echo" built-in appends a newline to the output.
--
Viktor.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users@openssl.org
Automated List Manager majord...@openssl.org
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users@openssl.org
Automated List Manager majord...@openssl.org