On Wed, Jun 13, 2001 at 02:14:48PM -0700, samuel wrote:
> Hi,
> I need a one way encryption for a 16 digits string.
> let's call $string the clear string, and e($string) the encypted string.
>
> I need e($string) to give always the same result for any $string,
> and I need e($string1) != e ($string2) for all ($string1,$string2),
> having $string1!= string2.
>
> Does the PASSWORD() built-in function of mysql fits to these
> requirements?
Yes.
> If not, do you know about any other encryption method that would fits to
> that?
encrypt() with a fixed salt.
Greetz, Peter
--
Against Free Sex! http://www.dataloss.nl/Megahard_en.html
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php