summaryrefslogtreecommitdiff
path: root/include/inspstring.h
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-02-21 17:08:45 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-02-21 17:08:45 +0000
commitf91a61fa22b239384c31526fd11da1e3030aaa96 (patch)
tree1faad7b868d6485073f38e9c5104f16f1084bfe4 /include/inspstring.h
parent4b2784862e7879b22f694801a25c4b2bedb457f9 (diff)
Add Base64 encode/decode functions to the core
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12507 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/inspstring.h')
-rw-r--r--include/inspstring.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/inspstring.h b/include/inspstring.h
index dc7e00152..b11739999 100644
--- a/include/inspstring.h
+++ b/include/inspstring.h
@@ -41,6 +41,10 @@ CoreExport bool charremove(char* mp, char remove);
/** Binary to hexadecimal conversion */
CoreExport std::string BinToHex(const std::string& data);
+/** Base64 encode */
+CoreExport std::string BinToBase64(const std::string& data, const char* table = NULL, char pad = 0);
+/** Base64 decode */
+CoreExport std::string Base64ToBin(const std::string& data, const char* table = NULL);
#endif