Skip to content

TFloMD5HashType ​

Identifies the encoding type of the hash, as either base64 or hexidecimal.

This is used in the MD5Convert function to determine the output hash format.

The MD5Hash generated value is Base64.

Declaration: TFloMD5HashType = keyword;

Examples of the use of this enumeration follows, using variables called hvar, hVar1 and hvar2 - all of the data type variant.

pascal
 //Make an MD5Hash in Base64
  mystring := MD5Hash('Hello Cameron');                        //Result will be 'q45qsH1Hx/+kPi+ajgfxrw=='

 //Converts from Base64 into Hex
  hvar := MD5Convert('q45qsH1Hx/+kPi+ajgfxrw=='), fhtHex);  //Result will be 'AB8E6AB07D47C7FFA43E2F9A8E07F1AF'
  hvar1 := MD5Convert(MD5Hash('Hello Cameron'), fhtHex);    //Result will be 'AB8E6AB07D47C7FFA43E2F9A8E07F1AF'

 //Converts from Hex into Base64
  hsvar2 := MD5Convert('AB8E6AB07D47C7FFA43E2F9A8E07F1AF', fhtBase64);   //Result will be 'q45qsH1Hx/+kPi+ajgfxrw=='

Keyword ​

fhtBase64

fhtHex