02-27-2022 09:56 AM
Hi,
Can somebody tell me how I can generate a random 16-byte nonce in the 32-character hexadecimal format.
I like to do this in the mapper, is that possible?
Thanks for your help.
02-28-2022 12:41 AM
Hi Richard,
Here’s a sample pipeline that outputs a binary string base from a hexadecimal string hope this helps 🙂
canvas 05_2022_02_28.slp (8.8 KB)
02-28-2022 03:23 AM
Hi Alchemiz
Thanks for the solution.
How do I make it an 32 character hexadecimal value instead of 40, the length must be 32?
Thanks
02-28-2022 06:13 AM
You can use Digest.md5(Math.randomUUID()) instead of sha1
02-28-2022 08:28 AM
You can also use Math.randomUUID().replace(/-/gi,‘’)