Hey @scastrianni-gs ![]()
I have no insights into the scripts being used, as that wasn’t shared, but here’s an example.
I’m just using the crypto module without requiring it at the top of the script.
console.log(crypto.randomUUID());
async function sha256(message) {
const encoder = new TextEncoder();
const data = encoder.encode(message);
const hashBuffer = await crypto.subtle.digest('SHA-256', data);
const hashArray = Array.from(new Uint8Array(hashBuffer));
const hashHex = hashArray.map(b => b.toString(16).padStart(2, '0')).join('');
console.log("SHA-256:", hashHex);
}
console.log(sha256("Hello, world!"));
What are you having issues with on your side?
If you can share more details, we will be able to help you. ![]()
