This wiki was in read-only mode for many years, but can now be edited again. A lot of information will need to be updated.

Bz MD5: Difference between revisions

From BZFlagWiki
Jump to navigation Jump to search
No edit summary
AAA (talk | contribs)
remove all possible ambiguity that could possibly confuse anyone
Line 6: Line 6:


==Parameters==
==Parameters==
* '''''str''''': A pointer to a null terminated string to use as the MD5 source.
; str : A pointer to a null terminated string to use as the MD5 source.
* '''''data''''': A pointer to raw unterminated data to use as the MD5 source.
; data : A pointer to raw unterminated data to use as the MD5 source.
* '''''size''''': The size of the raw data.
; size : The size of the raw data.


==Returns==
==Returns==
The hexedecmial representation of the MD5 hash.
The 32-character lowercase hexedecmial (ASCII) representation of the MD5 hash.


==Description==
==Description==
This function uses the same MD5 logic as BZFS.
This function uses the same MD5 logic as BZFS.

Revision as of 06:08, 25 May 2008

BZFS API Documentation This page contains part of the BZFS API documentation for use by Plug-ins on the BZFS server.
BZFS API Function. This page documents a BZFS_API Function, that is provided by the BZFS game server for plug-ins to call.


Syntax

const char *bz_MD5(const char* str);

const char *bz_MD5(const void* data, size_t size);

Parameters

str
A pointer to a null terminated string to use as the MD5 source.
data
A pointer to raw unterminated data to use as the MD5 source.
size
The size of the raw data.

Returns

The 32-character lowercase hexedecmial (ASCII) representation of the MD5 hash.

Description

This function uses the same MD5 logic as BZFS.