2
我正在试图用PHP和JS实现渐进式hmac。我觉得我得到了JS想出用crypto.js如何使用JS和PHP实现HMAC
var hmac = CryptoJS.algo.HMAC.create(CryptoJS.algo.SHA256, "Secret Passphrase");
hmac.update("Message Part 1");
hmac.update("Message Part 2");
hmac.update("Message Part 3");
var hash = hmac.finalize();
从crypto.js我试图找出如何使用PHP 5.3复制此服务器端
任何帮助上采取直这将是伟大的!
非常感谢你摇滚!我不知道为什么我找不到hash_update .... – MrB 2012-07-06 06:26:07