Flux rss
Bookmark Bookmark & Share
Codifica Base64 Codificação Base64 'Base64 Codierung Codage Base64 Codificación Base 64

Base64 encoding

The concept of Base64 encoding entails using US-ASCII (non-accented) characters to encode any sort of data in 8-bit form.

Email protocols were originally designed to send messages in plain text only. But as email systems vary greatly, transferring binary data often ends up changing the message's content, rendering the original document unreadable.

Base64 format, widely used in sending and receiving email, can transmit any kind of binary document (like an application, a video, or an audio file) as an attachment to an email, by encoding it in the form of basic characters.

Base64 encoding is responsible for an overall 33% increase in the volume of all encoded data.

Concept of Base64 encoding

The concept of Base64 encoding involves using 4 printable characters (in US-ASCII format) to encode any 3 bytes (3*8 bits = 24 bits).

Base64 encoding uses an alphabet of 64 printable characters to represent 6 bits of data. This alphabet's 64 symbols have been chosen for being universally readable, and for having no special meaning in the main email protocols (in particular SMTP).

ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwkyz
123456789+/.

Reading the binary data from left to right, groups of 24 bits are created by concatenating blocks of three bytes of data each. Each 24-bit group is then divided into 4 groups of 6 bits, with each one corresponding to 4 characters of the Base64 alphabet.

Base64 encoding is used for data which forms a multiple of 24 bits. If the amount of data to be encoded is not a multiple of 24 bits, the resulting Base64 string must end with between 0 to 3 equal signs ("=") in order to reach a multiple of 24. This 65th character may only be used at the end of the encoded data.

To ensure compatibility with all email systems, Base64 data is formatted with carriage returns, so that no line is longer than 76 characters.

Last update on Thursday October 16, 2008 02:43:14 PM.This document entitled « Base64 encoding » from Kioskea (en.kioskea.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the licence, as this note appears clearly.

BinHex encoding BinHex encoding BinHex encoding (a contraction of binary-to-hexadecimal) is a proprietary algorithm owned by Apple for converting 8-bit binary data into a 7-bit format. BinHex encoding, designed for Macintosh systems, is used to preserve file... en.kioskea.net/contents/base/binhex.php3
Quoted-printable encoding Quoted-printable encoding Quoted-printable encoding (somtimes QP) involves using US-ASCII 7-bits encoding (non-accented letters) to encode a text that requires an alphabet of 8-bit characters (accented letters), such as ISO-Latin-1, which is used... en.kioskea.net/contents/base/quoted-printable.php3
How to use a driver ODBC 32 BITS under the Window 2003(64 bits)?How to use a driver ODBC 32 BITS under the Window 2003(64 bits)? You have a Windows 2003 server (64-bits) and you want to use a 32 bits ODBC driver: one that is usually found in the administrative panel for ODBC on Windows or an external... en.kioskea.net/faq/sujet-707-how-to-use-a-driver-odbc-32-bits-under-the-window-2003-64-bits
Encode with Windows Media Player without using DRMEncode with Windows Media Player without using DRM The new versions of Windows Media Player has an option,for activating automatically, the insertion of DRM in to files music without prompting you. These DRM limit the use of these sound files... en.kioskea.net/faq/sujet-1299-encode-with-windows-media-player-without-using-drm
[C language]Handling 64-bit integers[C language]Handling 64-bit integers Unsigned 64-bit integer Example: Signed 64-bit integer Example: Basically in C language, an unsigned number over 32 bit can not exceed the value of 4 294 967 295. It may happen that you are... en.kioskea.net/faq/sujet-978-c-language-handling-64-bit-integers
Adobe Flash Player on 64 bitHello, I have Windows Vista and a 64 bit operating system. I cannot download Adobe Flash Player. However, I realize you can download it in the 32 bit version of Internet Explorer on a 64 bit operating system. I used to have a 32 bit version of... en.kioskea.net/forum/affich-92156-adobe-flash-player-on-64-bit
32 bit vs 64 bit on laptopHello, I just bought a lap top with 64 bit and windows vista. I did not realize that my job I have on the side which runs dos programs only runs 32 bit. Is there anything I can do besides return computer? thanks lt en.kioskea.net/forum/affich-28410-32-bit-vs-64-bit-on-laptop
XP Pro 32 bit on 64 bitHello, I have a program (GNEC ver 1.6 - http://www.nittany-scientific.com). It runs on 32 bit but does not run on 64 bit. Is there any way to run it on 64? Thanks en.kioskea.net/forum/affich-42911-xp-pro-32-bit-on-64-bit
Download Riva FLV encoderRiva FLV encoder allows to transcode your video files to advanced Flash Video ( FLV). Riva FLV encoder supports the following encoding formats: AVI, MPEG, Quicktime, WMV: -AVI - Cinepak Codec by Radius, Cinepak by Supermac - Intel... en.kioskea.net/telecharger/telecharger-1400-riva-flv-encoder
Download FLV EncoderFormat FLV is a common format for the broadcasting of video on Internet. It is the format of compression used by Youtube, DailyMotion and many other sites of video distribution. Normally, to acquire a video file in format FLV; it is necessary to pass... en.kioskea.net/telecharger/telecharger-789-flv-encoder
Download TMPGEnc XPressTMPGEnc 4.0 XPress helps you to encode any video to your desired file format including DivX, AVI, QuickTime, MPEG 4-ISO, H.264, DVD-Video, DVD-VR, HDV camcorder, Blu-ray Disc etc. This software has many functions and features ranging from a simple... en.kioskea.net/telecharger/telecharger-3524-tmpgenc-xpress
Representation of real numbers and integersRepresenting a number in a computer Representing (or encoding) a number means to express it in binary form. Representing numbers in a computer is necessary in order for it to be able to store and manipulate them. However, the problem is that a... en.kioskea.net/contents/base/representation.php3
Binary encodingIntroduction to binary In the late 1930s, Claude Shannon showed that by using switches which were closed for "true" and open for "false," it was possible to carry out logical operations by assigning the number 1 to "true" and 0 for "false." This... en.kioskea.net/contents/base/binaire.php3
Hexadecimal notationHexadecimal notation As binary numbers get longer and longer, a new base had to be introduced: hexadecimal numbering. The hexadecimal number system counts using base 16, so after the first 10 digits come the first six letters: 0, 1, 2, 3, 4, 5, 6,... en.kioskea.net/contents/base/hexa.php3