Re: Crypt Limitation?
| From: | Rasmus Lerdorf | Date: | Sat, 23 Mar 2002 08:28:26 +0000 |
| Subject: | Re: Crypt Limitation? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-89827@lists.php.net to get a copy of this message | ||
Depends on the OS. I suggest using md() instead.
On Sat, 23 Mar 2002, Steven Walker wrote:
> Is there a string length limitation to crypt()? It generates the same
> result for different input strings. I'm using crypt to store access
> codes that are generated using uniqid. For example, if I do the
> following:
>
> $encrypted = crypt("3c8d15c9cfe5a", "xx");
> echo $encrytped;
> $encrypted = crypt("3c8d15c9cfABC", "xx");
> echo $encrytped;
>
> it outputs:
> xxsZRVVwtwY7Y
> xxsZRVVwtwY7Y
>
> So it appears the crypt is ignoring characters in a string after a
> certain point. Am I missing something here?
>
> Steven J. Walker
> Walker Effects
> www.walkereffects.com
> steve@walkereffects.com
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>