2007-09-12 14:11:44 +00:00
|
|
|
unit uPasswordUtils;
|
|
|
|
|
|
|
|
|
|
interface
|
|
|
|
|
|
|
|
|
|
function EncriptarPassword(const password : string): String;
|
2007-10-03 16:03:28 +00:00
|
|
|
|
2007-09-12 14:11:44 +00:00
|
|
|
implementation
|
|
|
|
|
|
|
|
|
|
uses
|
2007-10-03 10:27:58 +00:00
|
|
|
uMD5, SysUtils;
|
2007-09-12 14:11:44 +00:00
|
|
|
|
|
|
|
|
function EncriptarPassword(const password : string): String;
|
|
|
|
|
var
|
|
|
|
|
t : TMD5Digest;
|
|
|
|
|
pass_encriptada : String;
|
|
|
|
|
begin
|
|
|
|
|
t := MD5String(password);
|
|
|
|
|
pass_encriptada := MD5DigestToStr(t);
|
|
|
|
|
Result := LowerCase(pass_encriptada);
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
end.
|