const{ FunctionEncypt }=require("base64functionhook");asyncfunctionMain(){/* Original Function function test(a, b) { console.log(a + b) } *///Encoded: CiAgICBmdW5jdGlvbiB0ZXN0KGEsIGIpIHsKICAgICAgICBjb25zb2xlLmxvZyhhICsgYikKICAgIH0KICAgIA==constBase64Caller=awaitnewFunctionEncypt().callBase64Function("CiAgICBmdW5jdGlvbiB0ZXN0KGEsIGIpIHsKICAgICAgICBjb25zb2xlLmxvZyhhICsgYikKICAgIH0KICAgIA==",[1,50]);}Main();
Code To Base64 Usege
const{ FunctionEncypt }=require("base64functionhook");asyncfunctionMain(){constCode=` function random(min, max) { return Math.floor(Math.random() * (max - min + 1)) + min; } `constfunctionEncypt=newFunctionEncypt();constbase64Code=functionEncypt.codeToBase64(Code);console.log(base64Code);//CiAgICBmdW5jdGlvbiByYW5kb20obWluLCBtYXgpIHsKICAgICAgICByZXR1cm4gTWF0aC5mbG9vcihNYXRoLnJhbmRvbSgpICogKG1heCAtIG1pbiArIDEpKSArIG1pbjsKICAgIH0KICAgIA==}Main()