Search for a tool
Base64 Coding

Tool to decrypt/encrypt with base 64. Base64 is a coding system using 64 characters, selected to be compatible with a majority of coding tables. It is used with emails for example.

Results

Base64 Coding -

Tag(s) : Cryptography,Substitution Cipher

dCode and you

dCode is free and its tools are a valuable help in games, puzzles and problems to solve every day!
You have a problem, an idea for a project, a specific need and dCode can not (yet) help you? You need custom development? Contact-me!


Team dCode read all messages and answer them if you leave an email (not published). It is thanks to you that dCode has the best Base64 Coding tool. Thank you.

This page is using the new English version of dCode, please make comments !

Base64 Coding

Sponsored ads

This script has been updated, please report any problems.

Affine Decoder




Base64 Encoder




Also on dCode: ASCII85 Encoding

Tool to decrypt/encrypt with base 64. Base64 is a coding system using 64 characters, selected to be compatible with a majority of coding tables. It is used with emails for example.

Answers to Questions

How to encrypt using Base64 coding

Decryption uses binary values of the text (depending on the coding table).

DCODE is written 01100100 01000011 01101111 01100100 01100101 in binaryhref (ASCIIhref code)

Coding consists in splitting the binary code in groups of 6 bits, filling it with 0 if needed.

011001 000100 001101 101111 011001 000110 0101 (+00)

Each group of 6 bits has a base10 value, it corresponds to a character in the Base 64 alphabet (start at 0): ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'

25 4 13 47 25 6 20

In the alphabet, 25 correspond to Z, 4 correspond to E, etc. It becomes ZENvZGU.

Base 64 works with groups of 4 characters, if needed, fill it with =.

ZENvZGU becomes ZENvZGU=

How to decrypt Base64 coding

Decryption consists in finding back values of the letters in the Base64 alphabet: ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'

Let the coded message be ZENvZGU=

Values are: 25 4 13 47 25 6 20 (equal sign = is ignored)

Values are converted to 6-bit binary

011001 000100 001101 101111 011001 000110 010100

Binary text is then split every 8 bits

01100100 01000011 01101111 01100100 01100101 00 (remaining bits, here the two final 0 are ignored)

Binary message is then coded using desired coding system (ASCIIhref, Unicodehref, etc.)

The plain text is DCODE (in ASCIIhref).

How to recognize an Base64 ciphered text?

The message has a maximum of 65 distinct characters. By default it is: ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=

Why data size is increasing?

In Base64href, 4 ASCIIhref characters are used to code 3 bytes. Volume is increased by 33%.

What is Base64URL?

Characters 62 + and 63 / can cause problems with URL, they can be remplaced by respectively - and _. The equal = sign is deleted.

When Base64 have been invented ?

RFC 2045 norm officialising Base64 is from 1996

Ask a new question

Source code

dCode retains ownership of the source code of the script Base64 Coding. Except explicit open source licence (free / freeware), any algorithm, applet, software (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or any snippet or function (convert, solve, decrypt, encrypt, decipher, cipher, decode, code, translate) written in PHP (or Java, C#, Python, Javascript, etc.) which dCode owns rights can be transferred after sales quote. So if you need to download the Base64 Coding script for offline use, for you, your company or association, see you on contact page !

Questions / Comments


Team dCode read all messages and answer them if you leave an email (not published). It is thanks to you that dCode has the best Base64 Coding tool. Thank you.


Source : http://www.dcode.fr/base-64-coding
© 2016 dCode — The ultimate 'toolkit' website to solve every problem. dCode