# HG changeset patch # User Sebastien Jodogne # Date 1360170105 -3600 # Node ID cda6938a8c6ff0c0fbe73c9167ce07b9c8915f4b # Parent 37b066ee2988e81dd9edcd0e232e461339ac03f0 decode base64 diff -r 37b066ee2988 -r cda6938a8c6f Core/Toolbox.cpp --- a/Core/Toolbox.cpp Thu Jan 31 16:51:42 2013 +0100 +++ b/Core/Toolbox.cpp Wed Feb 06 18:01:45 2013 +0100 @@ -440,6 +440,11 @@ return base64_encode(data); } + std::string Toolbox::DecodeBase64(const std::string& data) + { + return base64_decode(data); + } + #if defined(_WIN32) std::string Toolbox::GetPathToExecutable() diff -r 37b066ee2988 -r cda6938a8c6f Core/Toolbox.h --- a/Core/Toolbox.h Thu Jan 31 16:51:42 2013 +0100 +++ b/Core/Toolbox.h Wed Feb 06 18:01:45 2013 +0100 @@ -80,6 +80,8 @@ void ComputeSHA1(std::string& result, const std::string& data); + std::string DecodeBase64(const std::string& data); + std::string EncodeBase64(const std::string& data); std::string GetPathToExecutable();