From f91a61fa22b239384c31526fd11da1e3030aaa96 Mon Sep 17 00:00:00 2001 From: danieldg Date: Sun, 21 Feb 2010 17:08:45 +0000 Subject: Add Base64 encode/decode functions to the core git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12507 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/inspstring.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') 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 -- cgit v1.2.3