class EE::System::MD5¶
Overview¶
#include <md5.hpp> class MD5 { public: // typedefs typedef std::array<Uint8, 16> Digest; // structs struct Context; struct Result; // methods static Result fromStream(IOStream& stream); static Result fromFile(std::string path); static Result fromMemory(const Uint8* data, Uint64 size); static Result fromString(const std::string& str); static Result fromString(const String& str); static void init(Context& ctx); static void update(Context& ctx, const void* data, unsigned long size); static void final(Digest& result, Context& ctx); static Result result(Context& ctx); static std::string hexDigest(const Digest& digest); };
Detailed Documentation¶
Methods¶
static Result fromStream(IOStream& stream)
Returns:
Calculates the md5 hash from a stream
static Result fromFile(std::string path)
Calculates the md5 hash from a file
static Result fromMemory(const Uint8* data, Uint64 size)
Calculates the md5 hash from memory
static Result fromString(const std::string& str)
Calculates the md5 hash from a string
static Result fromString(const String& str)
Calculates the md5 hash from a string