1 // 2 // Copyright (c) ZeroC, Inc. All rights reserved. 3 // 4 5 #ifndef ICE_BASE_64_H 6 #define ICE_BASE_64_H 7 8 #include <Ice/Config.h> 9 #include <string> 10 #include <vector> 11 12 namespace IceInternal 13 { 14 15 class ICE_API Base64 16 { 17 public: 18 19 static std::string encode(const std::vector<unsigned char>&); 20 static std::vector<unsigned char> decode(const std::string&); 21 static bool isBase64(char); 22 23 private: 24 25 static char encode(unsigned char); 26 static unsigned char decode(char); 27 }; 28 29 } 30 31 #endif 32