Javascript vs SHA1 hmac PHP - Farklı Sonuçlar?

0 Cevap php

Hello I am using class in javascript to hash string: https://ssl.bsk.com.pl/mobi/js/sha1.js

hex_hmac_sha1("927545161", "asdasdasdasdś") ;

Result is: 5db0194c834d419fc5d68b72c88af1ac8ee749d6

PHP Ben karma ediyorum:

echo hash_hmac('sha1', "asdasdasdasdś", '927545161');

but result is: 0b115775a20bed9922b6a9cc934cb5328fe71ade

Where is error? 5db0194c834d419fc5d68b72c88af1ac8ee749d6 != 0b115775a20bed9922b6a9cc934cb5328fe71ade

0 Cevap