You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The hex format in this case increases the original message's size 2x.
Also shown on the table, the base64 encoding also increases the size but not as much as hex. Plus it's also a widely used format (although not as much as hex format due to its lack of readability), so base64 might be a better choice.
Some people have brought up other types of encoding schemes as well. Will need to consider if they're better than base64.
The text was updated successfully, but these errors were encountered:
One concern against base64 is that it includes certain special characters like /, +, and =, each of which is already being used for special purposes in the conventional URI scheme (/ being used as a path identifier for example).
This issue could be ignored if the standard enforces a very strict and distinct grammar but will need to consider both pros and cons first.
The original proposal suggests hex encoding because that's the one that's most widely used at the moment.
However hex format is not the most ideal when it comes to passing around because of its large size.
Here's a quick benchmark:
The hex format in this case increases the original message's size 2x.
Also shown on the table, the base64 encoding also increases the size but not as much as hex. Plus it's also a widely used format (although not as much as hex format due to its lack of readability), so base64 might be a better choice.
Some people have brought up other types of encoding schemes as well. Will need to consider if they're better than base64.
The text was updated successfully, but these errors were encountered: