base64

Com o programa base64, pode-se transformar um binário em texto ASCII. No exemplo será utilizado um binário empacotado e compactado com o tar e xz.

Gerar o ASCII

# base64 file.tar.xz > file.tar.xz.base64
base64 file.tar.xz possui 1370880Kb e file.tar.xz.base64 1851891Kb

Topo do arquivo

#head file.tar.xz.base64 /Td6WFoAAATm1rRGAgAhARYAAAB0L+Wj4k097/5dABcdiSb7fAmvIKq24YxTAlDiL6ZuNDykFj8Y PsFLKhwD8Mq4DlZeXfD13mUNiFHf5uWq+xthEEr7qmewlW4BzanRLrQdfnB6h9qVUzHWtVpW6HrA 0mr/3xEsiEj19x+ZlFPLwip77B2ub4mG75v+Kcq1EAv3uoVQSO86qoERxTblJzy0mtBSSyOT5vG3 qznjpxLfiiTgfBiwnJuXfLc0PxzhBXTMCaoN7g135iT/XYOnQt/a9CSU/SHqHAINA/A79Z82aZNj aBmHT5oA97Jz96c3SDo6KUzBtoxX4Pzi8PoilnGhWy22bcyslOYB5iqvuUpyvkdHtnaVmiA/Kx9w Sncw4YgsaHukgghsC3lPcVUUNwajV7x8bk6LHP0C58SbLMJ7QCsgcI8D2+4bXyBkVC7va0gmR7dX TwDEAXo1gmJzQuhSRSeCGOgeiFK84Z42psqHMYg6DNZSfNgE0czBbF3Nd+01K44Wcxn6UUz8ygKE NRenFtWHVFBFNpFhNIJ8pvwudf+yhwZiMstxIVhS+MO93W4Yt0FWTBjUINiC3xT1LKyg1s2b11tF 4REhsy7Zq1aOk7hP3EB6RgLCWv4D/JhxnyhT1Aj73x2mLWH9fZgrGFYWZeJ7jlmV6hfTRdjq9lk5 WM3HTr6vVM5jmsoooenZ/AABTMkuJS0fdjX6OQXhvGtn5kuDoQ18WQPWZbRE3yGRNawc0PFt8xD6

Final do arquivo

#tail file.tar.xz.base64 WuI8+ZbQdCuXJMjkouqOxGOnD0Z8cxLhy0jN7b+mbPKZfGk62ovTCyK7dV49AGwebZc9C9AVkVKB nk4bx+tHdNEJrK5FzsdQ/ta/DtE24u1F7OFUdHrW1nAJXMoTiLa1oei0iEzrGb9tPIeZGjuyfelI LhqpASUG33YDKHXmiPDuNb8bj36reKP/F6M2E/xJYIUo/+7cCjt/yslP6rC/Og7zu8s/CmfAK/oj G6OxLOITezCdDCO1PERS6KdywxHtSWtF2ieXF5wTShtcYo312cW5HlWwvuk0Uy6CFshYFdqfmE2G ZAhDmmQa/gSY4cQf07uPQ2Ir2zex4vZJWPoiOUJ4z3wbxFLlhoAnPyRMOzwYbj2gmZDMbULBbgxJ WrVZ6Ke/9NTWWU5dveeUIcDb1HFHdh9pyKFXRcBhT68/ZMCJbfJ69nBIC+FN+s+FfKxwpi9x/osy m7JAkjmcOIDxEU+rYxOPU4PVKGojRL+NJaUmGVkt6soYIaRSWMEppWRrat+nhNB8r32DvajR2RUN moEkrOvUOIK4wD3KFsJLor8MLY0G54/pvCDhzVprUvIlhjJepkyTWTIH6ST78UjRT1qKezrkZ6T/ nfh1ssypya+6QBMZta66sLUz79QbuzRBmgfwSncDiB3iRJVLi3gP7gW74gKNyAAAAAAA3hEW+WtK oYAAAdXVU4DwyQEAAADVs2dHFBc7MAMAAAAABFla

Reverter

#base64 -d file.tar.xz.base64 > file.tar.xz

Comentários