A small sourcemod extension, that will add 2 new functions to sourcepawn for creating md5 hashes of strings and files.
PHP Code:
/**
* @brief Creates md5hash for given file name
* @remarks throws an error if file not found
*
* @param filename file to hash
* @param buffer buffer to safe md5 hash (optimal size 33 [32chars + \0])
* @param maxlen maxlength of buffer
* @return none
*/
native MD5File(const String:filename[], String:buffer[], maxlen);
/**
* @brief Creates md5hash for given string
* @remarks
*
* @param filename string to hash
* @param buffer buffer to safe md5 hash (optimal size 33 [32chars + \0])
* @param maxlen maxlength of buffer
* @return none
*/
native MD5String(const String:string[], String:buffer[], maxlen);
Source repository:
https://bitbucket.org/DieTeetasse/sm...d5lib/overview
Download:
https://bitbucket.org/DieTeetasse/sm...xts_md5lib.zip
__________________