5 ms·
Cross platform echo Z3JlZ0Bhc3NldG1hcHBpbmcuY29tCg== | perl -MMIME::Base64 -pe 's/(.+)/decode_base64($1)/e'
by fru2013 8y ago
Cross platform
echo Z3JlZ0Bhc3NldG1hcHBpbmcuY29tCg== | perl -MMIME::Base64 -pe 's/(.+)/decode_base64($1)/e'
- mapping_assets 8y agoThank you :-) We are (mostly) python house on the back-end so I might use python instead of perl but I like the approach you suggested.
- svckr 8y agoWell, since you mentioned Docker: echo Z3JlZ0Bhc3NldG1hcHBpbmcuY29tCg== | docker run -i busybox base64 -d Edit: Yes, I'm piping your email address through an operating system image I just downloaded from the internet and, to be honest, I feel quite badly about this. :(
- knopkop_ 8y ago>>> import base64 >>> email = "Z3JlZ0Bhc3NldG1hcHBpbmcuY29tCg==" >>> print(base64.b64decode(email).decode('utf-8'))