Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:11:31

0001 // @(#)root/base:$Id$
0002 // Author: Gerardo Ganis + Fons Rademakers   15/5/2009
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2009, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TBase64
0013 #define ROOT_TBase64
0014 
0015 //////////////////////////////////////////////////////////////////////////
0016 //                                                                      //
0017 // TBase64                                                              //
0018 //                                                                      //
0019 // This code implements the Base64 encoding and decoding.               //
0020 // Base64 encoded messages are typically used in authentication         //
0021 // protocols and to pack binary data in HTTP messages.                  //
0022 //                                                                      //
0023 //////////////////////////////////////////////////////////////////////////
0024 
0025 #include "Rtypes.h"
0026 #include "TString.h"
0027 
0028 
0029 class TBase64 {
0030 
0031 public:
0032    virtual ~TBase64() { }
0033 
0034    static TString Encode(const char *data);
0035    static TString Encode(const char *data, Int_t len);
0036    static TString Decode(const char *data);
0037 
0038    ClassDef(TBase64,0)  // Base64 encoding/decoding
0039 };
0040 
0041 #endif