Encode Your Messages Using Base64

Encoding

The Algorithm of base64 Encoding algorithm

Step 1 :

Step 2 :

Step 3:

Step 4: Convert the Decimal to Binary in (8 Bit)

Step 5: Divide the above Binary into chunks of 6-bits

  1. Attach All Binary in One Line And Divide in 6 Part
  2. 0100000101110000011100000110110001100101
  3. Dividing Among 6 Parts
  4. 010000 -1st
  5. 010111 -2nd
  6. 000001 -3rd
  7. 110000 -4th
  8. 011011 -5th
  9. 000110 -6th
  10. 0101 -7th

Step 6: BASE64 TABLE

(A β€” Z) β€” β€” β€” 1–26

(a-z) β€” β€” β€” 26 -51

(0–9) β€” —–52–61

(+ /) β€” β€” β€” β€” 61–63

( = )β€” β€” β€” β€” β€” β€” 64

Step 7: Convert Those 6 parts to Decimal From The Above Table

Example 2:

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store