Open georgica opened 2 years ago
You don't need a python script to do the base64 encoding:
Here is how you do it with one line of code in bash: BASE64URL_FORMAT=$(echo "${BYTEARRAY:2:-2}" | tr ',' '\n' | xargs printf "%02X" | xxd -r -ps | base64 | tr -d '=' | tr +/ -)
Update that superior stack :)
thanks @georgica - hope you are well dude!
with the recent outages, what can i say
You don't need a python script to do the base64 encoding:
Here is how you do it with one line of code in bash: BASE64URL_FORMAT=$(echo "${BYTEARRAY:2:-2}" | tr ',' '\n' | xargs printf "%02X" | xxd -r -ps | base64 | tr -d '=' | tr +/ -)
Update that superior stack :)