Base64.h 402 B

12345678910111213141516171819202122
  1. /*
  2. * Copyright 2009, Pier Luigi Fiorini.
  3. * Copyright 2004-2009, René Nyffenegge
  4. * Distributed under the terms of the MIT License.
  5. */
  6. #ifndef _BASE_64_H
  7. #define _BASE_64_H
  8. #include <String.h>
  9. class Base64 {
  10. public:
  11. static bool IsBase64(uchar c);
  12. static BString Encode(const uchar* data, size_t length);
  13. static BString Decode(const BString& data);
  14. private:
  15. Base64();
  16. };
  17. #endif // _BASE_64_H