8
यह मेरा PHP कोड है:hmac_sha256 php और सी # में मतभेद है
hash_hmac("sha256", utf8_encode($filename), utf8_encode($password));
और यह मेरा सी # कोड है:
var hmacsha256 = new HMACSHA256(Encoding.UTF8.GetBytes(password));
hmacsha256.ComputeHash(Encoding.UTF8.GetBytes(filename));
दुर्भाग्य से दोनों परिणाम भिन्न होते हैं। क्या कोई मुझे संकेत दे सकता है?
धन्यवाद - मैं दोगुना होगा की जाँच करें और इस शाम वापस तुम्हारे पास आया। मैंने पहले से ही बिटकॉन्टर.ओस्ट्रिंग (hmacsha256.Hash) का उपयोग किया है, लेकिन मुझे गलत परिणाम मिल गए हैं। – tanascius
आपका स्वागत है :) –