Decode LoRa payload base64

I am running openHAB 3.3 M2 in docker on QNAP NAS.
I have a LoRa gateway that output base64 data over MQTT, and I can not find a solution to convert this to HEX so I can use it futher.
Example string I would like to convert to HEX: AQBsAkoD/gDEBw4IDgEsDwAUAA869Q==

I have tried javascript, but my skills are limited.

Hope someone have a solution for this :slight_smile:

Using a shell script you could do something like:

echo -n AQBsAkoD/gDEBw4IDgEsDwAUAA869Q==| base64 -d | xxd -p

which will result in