Solved

CodeBase64 Explanation

Posted on 2007-04-04
5
415 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
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Developer tools in browsers have been around for a while, yet they are still heavily underused by developers. Developers still fix html or CSS then refresh page to see effect, or they put alert or debugger in JavaScript and then try again and again …
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

708 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now