Alvise Nicoletti wrote:
Hi to all... did anyone never heard how to implement crypt and sha1 functions of php inside delphi/lazarus?

My problem is the "salt" used in the crypt function, cause I'm already able to create a md5 succesfully...

That is an example of code about them in php:
define ("CRYPT_MD5",1);
[...]
$c=crypt($pg,$s); // CRYPT DI pg in base a s
$code=sha1($TEXT.$DEST)

fpc has an md5 unit. Don't know about sha1, look for Delphi Encryption Compendium.

--
Joao Morais

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to