编辑代码

var scrypt = require("scrypt-js");
console.log("result:");
let msg = Buffer.from("需要处理的内容");
let salt = [0,1,3,2,1,2,3,4,6];

// 会直接卡死, 应该是库存在bug
 scrypt.scrypt(msg, salt, 64, 128, 28, 24,(e)=>{ 
    console.log(e);
});