Difference between revisions of "Base64"

From MgmtWiki
Jump to: navigation, search
(Problems)
(Solution)
Line 9: Line 9:
 
==Solution==
 
==Solution==
 
* Now there are two versions:
 
* Now there are two versions:
** Base64 uses the characters '+ and '/'
+
** Base64 uses the characters '+ and '/' typically with padding
** Base64url uses the characters '-' and '_'
+
** Base64url uses the characters '-' and '_' and prohibits padding.
  
 
==References==
 
==References==

Revision as of 16:37, 20 January 2020

Full Title

Base64 is a coding schema designed to convert binary data into ASCII encoded text.

Context

Base64 coding was created to allow binary information to be passed over channels that cannot cope with the full range of characters represented by a binary stream.

Problems

  • While Base64 works well for what it was designed to accomplish on Web Site communications over the World Wide Web, it cannot be used within a URL.
  • Some uses of base64 require padding with "=" or "==" to ensure that the encode stream is always divisible by four. Some uses prohibit such padding. Most uses don't care.

Solution

  • Now there are two versions:
    • Base64 uses the characters '+ and '/' typically with padding
    • Base64url uses the characters '-' and '_' and prohibits padding.

References