Solved

CodeBase64 Explanation

Posted on 2007-04-04
5
473 Views
Last Modified: 2012-06-21
I need to understand CodeBase 64.  If I CodeBase 64 a simple string like "Hi there", is there a one to one mapping between the encoded letters and each character?
0
Comment
Question by:lcor
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 125 total points
ID: 18850827
Yes, there is a "one to one" mapping. For more details, see http://en.wikipedia.org/wiki/Base64
0
 
LVL 17

Expert Comment

by:mokule
ID: 18850889
No, there is no one to one mapping
0
 
LVL 17

Assisted Solution

by:mokule
mokule earned 125 total points
ID: 18850937
For example MMM is encoded TU1N
0
 
LVL 53

Assisted Solution

by:Infinity08
Infinity08 earned 125 total points
ID: 18850969
mokule, 1-to-1 means that a string encoded in Base64 can be decoded again to the same string, and ONLY that string. ie. a string corresponds to one encoded Base64 string, and vice versa.

So, what jkr said is correct ... there is a 1-to-1 mapping between a string and its Base64 encoding.

However, if lcor wanted to know whether 1 character corresponds to one encoded character, then that's not true. Each block of three characters however will always have the same encoded result. And then you're correct, mokule ...
0
 
LVL 6

Assisted Solution

by:bijopuli
bijopuli earned 125 total points
ID: 18850972
Hi lcor

are u asking bout base64 encoding:
if it is so here are the links for u:

An intro on Base64:

http://email.about.com/cs/standards/a/base64_encoding.htm

A nice tool to experiment:

http://www.motobit.com/util/base64-decoder-encoder.asp

code in c++:

http://www.marcsweb.com/mnweb_ccppbase64.shtml

Regards
Bijo.
0

Featured Post

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question