vc++ base64 encoding

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Miguel

    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
  • Peter Oliphant

    #2
    Re: vc++ base64 encoding

    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):



    [==P==]

    "Miguel" <Miguel@discuss ions.microsoft. com> wrote in message
    news:FDE6B1A2-B820-418A-9B0C-9270041B5FDF@mi crosoft.com...[color=blue]
    >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[/color]


    Comment

    • William DePalo [MVP VC++ ]

      #3
      Re: vc++ base64 encoding

      "Miguel" <Miguel@discuss ions.microsoft. com> wrote in message
      news:FDE6B1A2-B820-418A-9B0C-9270041B5FDF@mi crosoft.com...[color=blue]
      >I am looking for some example of how to encode a string pair
      >(user/password)
      > in base64. I am using basic windows authentication. ..[/color]

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



      Regards,
      Will


      Comment

      • JAL

        #4
        RE: vc++ base64 encoding

        Miguel... Will Convert::ToBase 64String(myByte Array) work?

        "Miguel" wrote:
        [color=blue]
        > 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[/color]

        Comment

        • Lloyd Dupont

          #5
          Re: vc++ base64 encoding

          I had a good laugh reading this one ;-)

          "Peter Oliphant" <poliphant@Roun dTripInc.com> wrote in message
          news:umhdhu86FH A.1944@TK2MSFTN GP14.phx.gbl...[color=blue]
          > 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" <Miguel@discuss ions.microsoft. com> wrote in message
          > news:FDE6B1A2-B820-418A-9B0C-9270041B5FDF@mi crosoft.com...[color=green]
          >>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[/color]
          >
          >[/color]


          Comment

          • Miguel

            #6
            Re: vc++ base64 encoding

            thanks!

            I 'll take a look next week :-)

            "Peter Oliphant" wrote:
            [color=blue]
            > 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" <Miguel@discuss ions.microsoft. com> wrote in message
            > news:FDE6B1A2-B820-418A-9B0C-9270041B5FDF@mi crosoft.com...[color=green]
            > >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[/color]
            >
            >
            >[/color]

            Comment

            • Miguel

              #7
              Re: vc++ base64 encoding

              umm, but does it work with visual c++? I mean can I use the same code for c++
              that for vc++?

              "Lloyd Dupont" wrote:
              [color=blue]
              > I had a good laugh reading this one ;-)
              >
              > "Peter Oliphant" <poliphant@Roun dTripInc.com> wrote in message
              > news:umhdhu86FH A.1944@TK2MSFTN GP14.phx.gbl...[color=green]
              > > 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" <Miguel@discuss ions.microsoft. com> wrote in message
              > > news:FDE6B1A2-B820-418A-9B0C-9270041B5FDF@mi crosoft.com...[color=darkred]
              > >>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[/color]
              > >
              > >[/color]
              >
              >
              >[/color]

              Comment

              • Holger Grund

                #8
                Re: vc++ base64 encoding

                "Miguel" <Miguel@discuss ions.microsoft. com> wrote
                [color=blue]
                >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
                >[/color]
                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


                Comment

                • William DePalo [MVP VC++ ]

                  #9
                  Re: vc++ base64 encoding

                  "Miguel" <Miguel@discuss ions.microsoft. com> wrote in message
                  news:5DEFB776-6B86-46CC-9205-84EC572C6934@mi crosoft.com...[color=blue]
                  > umm, but does it work with visual c++? I mean can I use the same
                  > code for c++ that for vc++?[/color]

                  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


                  Comment

                  • Miguel

                    #10
                    Re: vc++ base64 encoding

                    thanks everybody!



                    "Holger Grund" wrote:
                    [color=blue]
                    > "Miguel" <Miguel@discuss ions.microsoft. com> wrote
                    >[color=green]
                    > >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
                    > >[/color]
                    > 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
                    >
                    >
                    >[/color]

                    Comment

                    Working...