NOTE: This article is 3 years or older so its information may no longer be relevant. Read on at your own discretion! Comments for this article have automatically been locked, refer to the FAQ
for more details.
encoding is used in quite a few places and there are many online web sites that let you encode or decode Base64
. I am not very comfortable using such sites for security and privacy reasons so I went looking for alternative solutions. Whether you're using Linux
you can use built-in tools to both encode or decode Base64
data. So ditch any online sites and start using software that is installed locally on your computer. Here's how.
You will need to do all of this via the command line. Given you're already dealing with Base64
data I am going to assume you know how to bring that up on your operating system. Scroll down to the relevant section based on your OS
below, also substitute your file names as appropriate.
I am going to use .txt
for the decoded data file extension and .b64
for the Base64
encoded file extension.
Note: encoding with the above command will leave a temporary file, tmp.b64, on your file system. If you do not wish to have that file present simply add this to the end of the command: && del tmp.b64
A quick disclaimer...
Although I put in a great effort into researching all the topics I cover, mistakes can happen.
If you spot something out of place, please do let me know.
All content and opinions expressed on this Blog are my own and do not represent the opinions of my employer (Oracle).
Use of any information contained in this blog post/article is subject to this disclaimer
Other posts you may like...