RE: [PHP] encrypting (low level)
| From: | jeremy brand | Date: | Tue, 14 Nov 2000 18:54:42 +0000 |
| Subject: | RE: [PHP] encrypting (low level) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-25223@lists.php.net to get a copy of this message | ||
http://php.net/crypt
With crypt, you need to use a salt, it s a 2 byte string that you
choose.
So it would be like this:
$crypted = crypt('8chars..','sa');
Remember, crypt is one way. MD5() is a better one way hash IMO. You
can hash more than 8 characters.
-jeremy brand
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html
for more
---------------------------------------------------------------------
We cannot do everything at once, but we can do something at once.
-- Calvin Coolidge
On Tue, 14 Nov 2000, Sven-Emil Vaara wrote:
> Date: Tue, 14 Nov 2000 13:46:02 -0500
> From: Sven-Emil Vaara <svaara@aitcom.net>
> To: 'jeremy brand' <jeremy@nirvani.net>
> Subject: RE: [PHP] encrypting (low level)
>
> How would it be done....
>
> $passwd = crypt("uncrypted password"); ??
>
> Sven-Emil Vaara
>
>