Random 16 Byte nonce
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎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)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2022 06:13 AM
You can use Digest.md5(Math.randomUUID()) instead of sha1

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2022 08:28 AM
You can also use Math.randomUUID().replace(/-/gi,‘’)
