?
Solved

CodeBase64 Explanation

Posted on 2007-04-04
5
Medium Priority
?
480 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 500 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 500 total points
ID: 18850937
For example MMM is encoded TU1N
0
 
LVL 53

Assisted Solution

by:Infinity08
Infinity08 earned 500 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 500 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

WordPress Tutorial 2: Terminology

An important part of learning any new piece of software is understanding the terminology it uses. Thankfully WordPress uses fairly simple names for everything that make it easy to start using the software.

Question has a verified solution.

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

How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
This video teaches viewers about errors in exception handling.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
Suggested Courses

765 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