YAPOG  0.0.1
Yet Another Pokemon Online Game
Md5.hpp
Go to the documentation of this file.
1 #ifndef YAPOG_MD5_HPP
2 # define YAPOG_MD5_HPP
3 
4 # include "YAPOG/Macros.hpp"
8 # include "YAPOG/System/String.hpp"
9 
10 namespace yap
11 {
12  class YAPOG_LIB Md5
13  {
15  public:
16  Md5();
17  Md5(const String& source);
18  Md5(IFStream& file);
19  Md5(const uchar* source, Int32 len);
20 
21  String Calculate(const String& source);
22  String Calculate(IFStream& file);
23  String Calculate(const uchar* source, Int32 len);
24 
25  String GetHash() const;
26  const uchar* GetRawHash() const;
27 
28  private:
30  uchar mrawHash_[16];
31  };
32 } // namespace yap
33 
34 #endif // MD5_HPP