vc++ base64 encoding

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
I had a good laugh reading this one ;-)

Peter Oliphant said:
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 said:
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
 
thanks!

I 'll take a look next week :-)

Peter Oliphant said:
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 said:
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
 
umm, but does it work with visual c++? I mean can I use the same code for c++
that for vc++?

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

Peter Oliphant said:
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 said:
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
 
Miguel said:
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
 
Miguel said:
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
 
thanks everybody!



Holger Grund said:
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
 
Back
Top