diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2012-01-22 20:32:58 +0100 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2012-06-22 17:19:28 +0200 |
commit | c4c99ade653e8e8f62ed4af4c22e196c8310d0d8 (patch) | |
tree | b790d4530a15cc420e5b683e1be3f9cf26b1672b /src/util.h | |
parent | a08e1826981e02c7a5f18fc30b4f40a780e4e86d (diff) |
Base32 encoding/decoding
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h index c9b2b2f17c..058f909796 100644 --- a/src/util.h +++ b/src/util.h @@ -146,6 +146,10 @@ std::vector<unsigned char> DecodeBase64(const char* p, bool* pfInvalid = NULL); std::string DecodeBase64(const std::string& str); std::string EncodeBase64(const unsigned char* pch, size_t len); std::string EncodeBase64(const std::string& str); +std::vector<unsigned char> DecodeBase32(const char* p, bool* pfInvalid = NULL); +std::string DecodeBase32(const std::string& str); +std::string EncodeBase32(const unsigned char* pch, size_t len); +std::string EncodeBase32(const std::string& str); void ParseParameters(int argc, const char*const argv[]); bool WildcardMatch(const char* psz, const char* mask); bool WildcardMatch(const std::string& str, const std::string& mask); |