snkrs web端分析,canvas中的fingerpint

snkrs web端分析,canvas中的fingerpint

代码如下

(()=>{
const canvas = document.createElement("canvas");
canvas.width = 280;
canvas.height = 60;
canvas.style.display = "none"
const context = canvas.getContext("2d");
context.fillStyle = "rgb(102, 204, 0)";
context.fillRect(100, 5, 80, 50);
context.fillStyle = "#f60";
context.font = "16pt Arial";
context.fillText("<@nv45. F1n63r,Pr1n71n6!", 10, 40);
context.strokeStyle = "rgb(120, 186, 176)";
context.arc(80, 10, 20, 0, Math.PI, !1);
context.stroke();
const canvasValue = canvas.toDataURL();
console.log(canvasValue)
})();

snkrs web端分析,canvas中的fingerpint_第1张图片

如何mock出canvs中的fingerpint

contact me

博客: https://github.com/zhaojunlike

你可能感兴趣的:(snkrs web端分析,canvas中的fingerpint)