Difference between revisions of "IcsMD5.StrMD5"

From Overbyte
Jump to navigation Jump to search
(link fixed)
 
Line 7: Line 7:
 
== Description ==
 
== Description ==
  
'''StrMD5''' is used to get the MD5 hash value of a ordinary string (e.g. a password string). You put in the string as parameter and get out the hash value without needing to initialize the MD5 hashing code since this is done internally.
+
'''StrMD5''' is used to get the MD5 hash value of a ordinary string (e.g. a password string). You put in the string as parameter and get out the hash value without needing to initialize the MD5 hashing code since this is done internally. Note that this function returns the MD5-hashed string in uppercase but some webbased MD5 routines generates in lowercase which can cause matching issues.
  
 
== Example ==
 
== Example ==

Latest revision as of 20:42, 7 September 2010

Main page -> ICS component reference -> MD5 -> StrMD5

Definition

function StrMD5(?): string;

Description

StrMD5 is used to get the MD5 hash value of a ordinary string (e.g. a password string). You put in the string as parameter and get out the hash value without needing to initialize the MD5 hashing code since this is done internally. Note that this function returns the MD5-hashed string in uppercase but some webbased MD5 routines generates in lowercase which can cause matching issues.

Example

var s:String;

begin

 s:='hello';
 ShowMessage(StrMD5(s));

end;

Best practices

How to