📜  hash_hmac javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:23.980000             🧑  作者: Mango

代码示例1
var crypto = require('crypto');
var buf1 = crypto.createHmac("sha1", "0").update("shanghai").digest();
var buf2 = Buffer.from('beijing');
console.log(Buffer.concat([buf1, buf2]).toString('base64'));