diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-11-27 19:06:47 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-11-27 19:06:47 (GMT) |
commit | aa09a889108c4d0e3c5888ad98958d8f3e12bd3b (patch) | |
tree | 3c621ae0a6e2150281be182b37e2837b804adcba /Swiften/StringCodecs/Base64.h | |
parent | c89ef0ffae597ac8c1063732e1d9a2d84703a80c (diff) | |
download | swift-aa09a889108c4d0e3c5888ad98958d8f3e12bd3b.zip swift-aa09a889108c4d0e3c5888ad98958d8f3e12bd3b.tar.bz2 |
Added MD5 hashing algorithm.
Moved 'hexifying' of hashes into its own class, such that it can be
shared between all hashes.
Diffstat (limited to 'Swiften/StringCodecs/Base64.h')
-rw-r--r-- | Swiften/StringCodecs/Base64.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Swiften/StringCodecs/Base64.h b/Swiften/StringCodecs/Base64.h index 41ff62e..1ea378c 100644 --- a/Swiften/StringCodecs/Base64.h +++ b/Swiften/StringCodecs/Base64.h @@ -1,5 +1,4 @@ -#ifndef SWIFTEN_STRINGCODECS_BASE64_H -#define SWIFTEN_STRINGCODECS_BASE64_H +#pragma once #include <vector> @@ -7,12 +6,9 @@ #include "Swiften/Base/ByteArray.h" namespace Swift { - class Base64 - { + class Base64 { public: static String encode(const ByteArray& s); static ByteArray decode(const String &s); }; } - -#endif |