Program Listing for File base64.h

Return to documentation for file (include/crpropa/base64.h)

#ifndef BASE64_H
#define BASE64_H

#include <string>
#include <cstring>
#include <stdexcept>

namespace crpropa
{

        class Base64
        {
        public:
                static std::string encode(const unsigned char *src, size_t len);
                static std::string decode(const std::string &data);
        };
}


#endif // BASE64_H