Solved

CodeBase64 Explanation

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.

839 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