Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Python base64 :) #54

Open
georgica opened this issue Nov 22, 2021 · 2 comments
Open

Python base64 :) #54

georgica opened this issue Nov 22, 2021 · 2 comments

Comments

@georgica
Copy link

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 "${BYTE_ARRAY:2:-2}" | tr ',' '\n' | xargs printf "%02X" | xxd -r -ps | base64 | tr -d '=' | tr +/ -_)

Update that superior stack :)

@shawaj
Copy link
Member

shawaj commented Nov 23, 2021

thanks @georgica - hope you are well dude!

@georgica
Copy link
Author

with the recent outages, what can i say

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants