WebMD5Encode Function

Action

Encodes a string using the MD5 algorithm. The result is a string that comprises 32 hexadecimal digits.

Include file

WebAPI.bdh

Syntax

WebMD5Encode( out sResult    : string,
              in  nMaxResult : number,
              in  sToEncode  : string ): boolean;

Return value

  • true if the encoding was successful

  • false otherwise

Parameter Description
sResult String variable that receives the result. This string variable must be at least 33 characters long.
nMaxResult Size of the specified string variable.
sToEncode String that is to be encoded.

Example

dcltrans
  transaction TMain
  var
    sResult: string;
  begin
    WebMD5Encode(sResult, STRING_COMPLETE, "Password");
    Print(sResult);
  end TMain;