我想用 PHP 和 JS 实现一个渐进式 hmac。我想我用crypto.js弄明白了js
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 复制它
对此的任何帮助都会很棒!