Raised This Month: $ Target: $400
 0% 

[EXTENSION] MD5Lib


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
DieTeetasse
Senior Member
Join Date: Jul 2009
Old 12-21-2010 , 12:26   [EXTENSION] MD5Lib
Reply With Quote #1

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
__________________
DieTeetasse is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:08.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode