{"id":1732,"date":"2021-12-16T13:45:39","date_gmt":"2021-12-16T10:45:39","guid":{"rendered":"https:\/\/files2.tojikon.net\/files-cloud\/2021\/02\/18\/how-to-base64-decode-on-linux-2\/https:\/\/files2.tojikon.net\/files-cloud\/2021\/02\/18\/how-to-base64-decode-on-linux-2\/"},"modified":"2021-12-16T13:45:39","modified_gmt":"2021-12-16T10:45:39","slug":"how-to-base64-decode-on-linux","status":"publish","type":"post","link":"https:\/\/tojikon.net\/en\/1732-how-to-base64-decode-on-linux\/","title":{"rendered":"How to: Base64 decode on Linux"},"content":{"rendered":"<section id=\"related_posts\">\n<div class=\"block-head\">\n<h3>Related Articles<\/h3>\n<\/div>\n<\/section>\n<p>Do you share messages using the Base64 encoding tool due to privacy? Want to learn how you can decode these messages natively on your Linux system? If so, this guide is for you! Follow along as we go over ways to decode Base64 messages on Linux!<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-395181 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-base64-decode-on-linux.png\" alt=\"\" width=\"1200\" height=\"600\"\/><\/p>\n<h2>Base64 decode \u2013 Basez<\/h2>\n<p>One way to decrypt Base64 encodings on Linux is with the Basez, a command-line utility that can decode Base64 encrypted texts. However, the Basez application doesn\u2019t come pre-installed on any Linux system. So, before we go over how to use it to decode text, the program must be installed.<\/p>\n<p>To start the installation of Basez on Linux, open up a terminal window on the desktop. The terminal window can be opened on most desktop environments by pressing the <strong>Ctrl + Alt + T\u00a0<\/strong>keyboard combination.\u00a0<\/p>\n<p>Once the terminal window is open on the desktop, follow the command-line installation instructions for Basez down below that correspond with the Linux operating system you currently use.<\/p>\n<h4>Ubuntu<\/h4>\n<p>On Ubuntu Linux, the BaseZ application is installable with the following\u00a0<strong>Apt\u00a0<\/strong>command below.<\/p>\n<pre>\nsudo apt install basez\n<\/pre>\n<h4>Debian<\/h4>\n<p>If you are using Debian Linux, you\u2019ll be able to get BaseZ working using the following\u00a0<strong>Apt-get\u00a0<\/strong>command.<\/p>\n<pre>\nsudo apt-get install basez\n<\/pre>\n<h4>Arch Linux\u00a0<\/h4>\n<p>Basez isn\u2019t in the official Arch Linux software repositories. However, you\u2019ll still be able to install it from the Arch Linux AUR. To start the installation, get the Trizen AUR helper set up on your system using the commands below.<\/p>\n<pre>\nsudo pacman -S git base-devel\ngit clone https:\/\/aur.archlinux.org\/trizen.git\ncd trizen\nmakepkg -sri\n<\/pre>\n<p>With Trizen installed, make use of the <strong>trizen -S\u00a0<\/strong>command to get Basez working.<\/p>\n<pre>\ntrizen -S basez\n<\/pre>\n<h4>Fedora\/OpenSUSE<\/h4>\n<p>Sadly, both Fedora and OpenSUSE Linux do not have Basez packages available in their software repositories. If you wish to use Basez, you will need to download and compile the code here manually.<\/p>\n<p>After installing the Basez program on your Linux PC, the decoding can begin. In a terminal window, enter the following command below to decrypt your Base64 string.<\/p>\n<p>Keep in mind that the command below is an example. You must erase the example Base64 code and replace it with your own code.<\/p>\n<pre>\necho 'SGVsbG8sIHRoaXMgaXMgYSB0ZXN0Lg==' &gt; \/tmp\/base64-encoding | basez -d \/tmp\/base64-encoding\n<\/pre>\n<p>In this example encoding, the message is \u201cThis is a test.\u201d When the command above is run, you will see the encrypted text decrypt in the terminal window.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-395181 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-base64-decode-on-linux.png\" alt=\"\" width=\"1200\" height=\"600\"\/><\/p>\n<p>For more information on how to use the Basez decrypter\/encrypter, make use of the\u00a0<strong>man basez\u00a0<\/strong>command. By executing this command, you\u2019ll be able to read the manual for the program, learn special operations not covered in the article, and more.<\/p>\n<h2>Base64 decode \u2013 Base64 command-line app<\/h2>\n<p>Another way to decode Base64 encrypted text on Linux is with the built-in Base64 program included on all Linux operating systems. The Base64 app is part of the GNU Core Utilities, and thus we do not need to go over how to install it.<\/p>\n<p>Any Linux user can access the Base64 program included on their operating system. If you\u2019re curious about the app\u2019s functions, you can execute the <strong>base64 \u2013help\u00a0<\/strong>command in a terminal window.<\/p>\n<pre>\nbase64 --help\n<\/pre>\n<p>Alternatively, if you\u2019d like to take an in-depth look at how the Base64 app works on Linux, execute the\u00a0<strong>man base64\u00a0<\/strong>command to view its manual entry.<\/p>\n<pre>\nman base64\n<\/pre>\n<p>If you have a Base64 encrypted line of text you\u2019d like to decrypt, open up a terminal window and enter your code into the example command below between the \u2018 \u2018 marks.<\/p>\n<pre>\necho 'SGVsbG8sIHRoaXMgaXMgYSB0ZXN0Lg==' | base64 --decode\n<\/pre>\n<p>After entering the command below, the Base64 app will print out your decoded text in the terminal, which you can then copy and use however you see fit.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-395180 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-base64-decode-on-linux-2.png\" alt=\"\" width=\"1200\" height=\"694\"\/><\/p>\n<h2>Base64 decode \u2013 Base64decode.org<\/h2>\n<p>Command-line utilities are great, and Basez, as well as the built-in Base64 app, do a great job of decoding encrypted Base64 text, but that\u2019s not the only way you can decode Base64 encodings. It is also possible to do it on the internet.<\/p>\n<p>If you\u2019d like to decode a Base64 string of code on Linux and you\u2019d like to avoid the command-line, you\u2019ll want to check out Base64decode.org. It\u2019s an excellent website that allows users to decode Base64 with ease quickly.<\/p>\n<p>To start, open up your favorite Linux web browser. Once it is open, head over to Base64decode.org. Then, with the website loaded up, find the text box that says \u201cType (or paste) here,\u201d and paste in your code.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-395183 size-full\" src=\"https:\/\/www.addictivetips.com\/app\/uploads\/2021\/02\/online-decode.png\" alt=\"\" width=\"1200\" height=\"802\"\/><\/p>\n<p>After pasting your code into the decoding box, click on the green \u201cDECODE\u201d button. When you select the \u201cDECODE\u201d button with the mouse, the website will descramble your Base64 encoding and output the decoded message. You can then copy the message to your clipboard from the website.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Related Articles Do you share messages using the Base64 encoding tool due to privacy? Want to learn how you can decode these messages natively on your Linux system? If so, this guide is for you! Follow along as we go over ways to decode Base64 messages on Linux! Base64 decode \u2013 Basez One way to &hellip;<\/p>\n","protected":false},"author":1,"featured_media":1733,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[21],"tags":[33],"_links":{"self":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/posts\/1732"}],"collection":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/comments?post=1732"}],"version-history":[{"count":0,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/posts\/1732\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/media\/1733"}],"wp:attachment":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/media?parent=1732"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/categories?post=1732"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/tags?post=1732"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}