Richard
4 years agoNew Contributor III
Random 16 Byte nonce
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.
Hi @tonyzero,
I don’t think you should decode the content like that, as far as I understood, you are getting the .zip file from the SOAP endpoint, which returns binary data, then what you should really do is just map the $content of the SOAP as $content, you shouldn’t decode anything in the mapper. Also, your $['content_type']
target path is not valid, you should write $['content-type']
not $['content_type']
with an underscore.
Hi @j.angelevski ,
Thank you so much for your reply. It actually works with Base64.decodeAsBinary($content) and I got what I need.
You can also use Math.randomUUID().replace(/-/gi,‘’)