i have a problem in executing SCrypt that is made by Tony Garnock-Jones
I don't know how to initialize scrypt_module_factory to run scrypt.crypto_scrypt function in VSCode debugger, i have to say that i'm new to JS.
Here is the code that i'm using, i wanna use this code inside of the library (main file of SCrypt):
var window = {};
var document = {};
const PASS = "test";
const SALT = "uf9tvxPoA4pwDXRDucQC19l30mN";
const COST = 1024;
const BLOCK_SIZE = 1;
const PARALLEL = 1;
var scrypt = scrypt_module_factory(t);
var t = scrypt.crypto_scrypt(PASS, SALT, COST, BLOCK_SIZE, PARALLEL, 15);
console.log(scrypt); //Output must be: "dc8b8d8e1d08b834f47f176f529266"
• Library: made by Tony Garnock-Jones