changeset 365:cda6938a8c6f

decode base64
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 06 Feb 2013 18:01:45 +0100
parents 37b066ee2988
children 68fd4de63eae
files Core/Toolbox.cpp Core/Toolbox.h
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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()
--- 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();