473,698 Members | 2,134 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3837
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****@discuss ions.microsoft. com> wrote in message
news:FD******** *************** ***********@mic rosoft.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****@discuss ions.microsoft. com> wrote in message
news:FD******** *************** ***********@mic rosoft.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::ToBase 64String(myByte Array) 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*******@Roun dTripInc.com> wrote in message
news:um******** ******@TK2MSFTN GP14.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****@discuss ions.microsoft. com> wrote in message
news:FD******** *************** ***********@mic rosoft.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****@discuss ions.microsoft. com> wrote in message
news:FD******** *************** ***********@mic rosoft.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*******@Roun dTripInc.com> wrote in message
news:um******** ******@TK2MSFTN GP14.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****@discuss ions.microsoft. com> wrote in message
news:FD******** *************** ***********@mic rosoft.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****@discuss ions.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)co de.
Take a look at atlenc.h/inl

-hg
Nov 18 '05 #8
"Miguel" <Mi****@discuss ions.microsoft. com> wrote in message
news:5D******** *************** ***********@mic rosoft.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****@discuss ions.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)co de.
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
5392
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 ~30%, is this the drawback for using the encoding scheme? Thanks.
1
537
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 this private string ConvertBase64ToString(string content) { StringBuilder sb = new StringBuilder(); int i = content.GetUpperBound(0);
2
29314
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, but the instructions I received do not seem correct. I need to covert a hex string to base64 and was told to 1. convert from the HEX string to a byte array 2. convert the byte array to Base64 encoding 3. the two encodings would produce the...
0
1445
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 projects; its generated assembly is inside MyAssembly.dll When used inside a VC++.NET project it appears correctly over forms at design time but when trying to compile the project we get the following error:
0
1324
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 projects; its generated assembly is inside MyAssembly.dll When used inside a VC++.NET project it appears correctly over forms at design time but when trying to compile the project we get the following error:
5
4117
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. Cold somebody check this for me to see what I have done wrong: If you run this program and enter a path for a .GIF file into the white box and hit <Enter> it should display the string in the blue box. To test this if you click the menu File...
8
2800
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 the result should be "pass____ what the result is where each underline char is a nothing char. I am about to write a function that will remove the nothing chars butI would like to know what is causing the problem and simply avoid it
13
14778
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 send me the library file which helps that is really grateful. aruna.
10
4045
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 support for base64 encoding and decoding , but i will have to now implement both in C without using the openssl libraries . I was able to download a code w.r.t. base 64 encoding and decoding . I am attaching the code below .
0
8674
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8603
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9157
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9023
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8861
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6518
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4366
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2327
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.