aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGravatar danieldg2010-02-21 17:08:45 +0000
committerGravatar danieldg2010-02-21 17:08:45 +0000
commitf91a61fa22b239384c31526fd11da1e3030aaa96 (patch)
tree1faad7b868d6485073f38e9c5104f16f1084bfe4 /include
parentFix exception on m_cloaking GetVersion if run without a hash provider (diff)
downloadinspircd++-f91a61fa22b239384c31526fd11da1e3030aaa96.tar.gz
inspircd++-f91a61fa22b239384c31526fd11da1e3030aaa96.tar.bz2
inspircd++-f91a61fa22b239384c31526fd11da1e3030aaa96.zip
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')
-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