473,387 Members | 1,542 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

vc++ base64 encoding

I am looking for some example of how to encode a string pair (user/password)
in base64. I am using basic windows authentication...
¿Could anybody help me?

Thank you in advance

Miguel
Nov 17 '05 #1
9 3814
Are you aware of the data type '__int64' ? Not sure if that will help, but
thought I'd mention it. Look here for details (it's not standard C++, but
then again, neither is VS C++.NET):

http://msdn2.microsoft.com/en-us/library/29dh1w7z.aspx

[==P==]

"Miguel" <Mi****@discussions.microsoft.com> wrote in message
news:FD**********************************@microsof t.com...
I am looking for some example of how to encode a string pair
(user/password)
in base64. I am using basic windows authentication...
¿Could anybody help me?

Thank you in advance

Miguel

Nov 17 '05 #2
"Miguel" <Mi****@discussions.microsoft.com> wrote in message
news:FD**********************************@microsof t.com...
I am looking for some example of how to encode a string pair
(user/password)
in base64. I am using basic windows authentication...


Google is your friend. This link was at the top of the result set of my
search:

http://www.adp-gmbh.ch/cpp/common/base64.html

Regards,
Will
Nov 18 '05 #3
JAL
Miguel... Will Convert::ToBase64String(myByteArray) work?

"Miguel" wrote:
I am looking for some example of how to encode a string pair (user/password)
in base64. I am using basic windows authentication...
¿Could anybody help me?

Thank you in advance

Miguel

Nov 18 '05 #4
I had a good laugh reading this one ;-)

"Peter Oliphant" <po*******@RoundTripInc.com> wrote in message
news:um**************@TK2MSFTNGP14.phx.gbl...
Are you aware of the data type '__int64' ? Not sure if that will help, but
thought I'd mention it. Look here for details (it's not standard C++, but
then again, neither is VS C++.NET):

http://msdn2.microsoft.com/en-us/library/29dh1w7z.aspx

[==P==]

"Miguel" <Mi****@discussions.microsoft.com> wrote in message
news:FD**********************************@microsof t.com...
I am looking for some example of how to encode a string pair
(user/password)
in base64. I am using basic windows authentication...
¿Could anybody help me?

Thank you in advance

Miguel


Nov 18 '05 #5
thanks!

I 'll take a look next week :-)

"Peter Oliphant" wrote:
Are you aware of the data type '__int64' ? Not sure if that will help, but
thought I'd mention it. Look here for details (it's not standard C++, but
then again, neither is VS C++.NET):

http://msdn2.microsoft.com/en-us/library/29dh1w7z.aspx

[==P==]

"Miguel" <Mi****@discussions.microsoft.com> wrote in message
news:FD**********************************@microsof t.com...
I am looking for some example of how to encode a string pair
(user/password)
in base64. I am using basic windows authentication...
¿Could anybody help me?

Thank you in advance

Miguel


Nov 18 '05 #6
umm, but does it work with visual c++? I mean can I use the same code for c++
that for vc++?

"Lloyd Dupont" wrote:
I had a good laugh reading this one ;-)

"Peter Oliphant" <po*******@RoundTripInc.com> wrote in message
news:um**************@TK2MSFTNGP14.phx.gbl...
Are you aware of the data type '__int64' ? Not sure if that will help, but
thought I'd mention it. Look here for details (it's not standard C++, but
then again, neither is VS C++.NET):

http://msdn2.microsoft.com/en-us/library/29dh1w7z.aspx

[==P==]

"Miguel" <Mi****@discussions.microsoft.com> wrote in message
news:FD**********************************@microsof t.com...
I am looking for some example of how to encode a string pair
(user/password)
in base64. I am using basic windows authentication...
¿Could anybody help me?

Thank you in advance

Miguel



Nov 18 '05 #7
"Miguel" <Mi****@discussions.microsoft.com> wrote
I am looking for some example of how to encode a string pair
(user/password)
in base64. I am using basic windows authentication...
¿Could anybody help me?

Thank you in advance

The ATL Server library has support functions for Base64 encoding/decoding
(probably to support sending emails via SMTP). IIRC the functions are
Base64(En|De)code.
Take a look at atlenc.h/inl

-hg
Nov 18 '05 #8
"Miguel" <Mi****@discussions.microsoft.com> wrote in message
news:5D**********************************@microsof t.com...
umm, but does it work with visual c++? I mean can I use the same
code for c++ that for vc++?


Visual C++ (vc++) is a developer tool _product_ of Microsoft. The recent
editions of the product (VS2003 and VS2005) include a C++ _language_
compiler whose compliance with the ISO standard is on a par with most other
products from major vendors (e.g. no export support regarding templates).

So, yes, standard C++ code should be compilable with recent editions of
VC++.

On the other hand, if you are still using Visual Studio 6.0, many standard
C++ samples will fail to compile as-is.

Regards,
Will
Nov 18 '05 #9
thanks everybody!

"Holger Grund" wrote:
"Miguel" <Mi****@discussions.microsoft.com> wrote
I am looking for some example of how to encode a string pair
(user/password)
in base64. I am using basic windows authentication...
¿Could anybody help me?

Thank you in advance

The ATL Server library has support functions for Base64 encoding/decoding
(probably to support sending emails via SMTP). IIRC the functions are
Base64(En|De)code.
Take a look at atlenc.h/inl

-hg

Nov 21 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: wenmang | last post by:
Hi, I ma thinking whether to use Base64 encoding to encode the binary content in the XML file. I have done some simple calculations, it seems to me that the size for encoded content increases by...
1
by: mvdevnull | last post by:
hey all currently i use the following piece of code to check if the string passed to me can be converted to base64, it is not very efficient and bad, can someone please suggest another of doing...
2
by: kevin | last post by:
DISCLAIMER: I know what the words mean (i.e. by definition), but I in know way pretend to understand the specifics of either, therefore I may need a basic primer before I can accomplish this task,...
0
by: Severino | last post by:
Hi all, we have developed a .NET component for use inside Windows Forms: this component has been written using VC++.NET (2003) and is working perfectly when inserted inside VC#.NET or VB.NET...
0
by: Severino | last post by:
Hi all, we have developed a .NET component for use inside Windows Forms: this component has been written using VC++.NET (2003) and is working perfectly when inserted inside VC#.NET or VB.NET...
5
by: Jay | last post by:
I have bean trying to get my head around reading .GIF files from base64 strings, Basically I need to specify a filename and convert it to base64 then I can copy/past the string to wear I want it....
8
by: Jeremy Kitchen | last post by:
I have encoded a string into Base64 for the purpose of encryption. I then later decrypted it and converted it back from Base64 the final string returns with four nothing characters. "pass" what...
13
by: aruna.eies.eng | last post by:
i am currently trying to convert data into binary data.for that i need to know how to achieve it in c language and what are the libraries that we can use. so if any one can send me a sample code or...
10
by: pycraze | last post by:
Hi , I am currently trying to implement base64 encoding and decoding scheme in C . Python has a module , base64 , that will do the encoding and decoding with ease . I am aware of OpenSSL having...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.