%MD5 function


Function
The function returns the MD5 hash of a text string or calculates it from the items of a local structured variable.


Declaration
TEXT %MD5(
  TEXT in String,
 )


TEXT %MD5(
 HBJ in _localStruct,
 )
Parameters
StringText string.
localStructlocal variable of Record type.
Description
If a local structured variable \HBJ is used as a real parameter, the function calculates the checksum from all items of a local structured variable. The calculation of an MD5 hash involves all the object attributes - validity flag, user flags, value time, etc.
Example
 BEGIN
 TEXT _tString
 TEXT _tMD5
   _tString := "text"
   _tMD5 := %MD5(_tString)
 
 RECORD (SD.dataXY) _structXY
 _structXY[1]^X := 11
 _structXY[1]^Y := 12
 
 _tMD5 := %MD5(_structXY\HBJ)
 
  END 

0 komentárov

Nie ste prihlásený. Akékoľvek zmeny, ktoré vykonáte, sa označia ako anonymné. Ak už máte svoj účet, pravdepodobne sa budete chcieť prihlásiť .