Fonction to convert b64 to hexa?

Dear,
I need to create a formula to convert b64 to hexa.
Thanks in advances

Base64 to Buffer (array of numbers)

Buffer.from('AQIDBAU=', "base64")
→ <Buffer 01 02 03 04 05>

Base64 to Hexadecimal String...

Buffer.from('AQIDBAU=', "base64").toString("hex")
→ '0102030405'

Or use the node-red-node-base64 node

1 Like