php-general | 2000071
Date: 07/07/00
- Next message: Sebastian Bergmann: "Re: [PHP] File Size problems when uploading via PHP and Apache"
- Previous message: Chris Adams: "Re: [PHP] passwords"
- In reply to: Abdul-Kareem Abo-Namous: "Re: [PHP] passwords"
- Next in thread: scottrus <email protected>: "Re: [PHP] passwords"
- Reply: scottrus <email protected>: "Re: [PHP] passwords"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> thanks guys; let's see if i got it: i md5-encrypt the password string once
> and store the resulting string. i change the form method to post. as soon
as
> my script gets the username and password it encrypts the password again
and
> checks against the stored one. if they match and i don't want to work with
> cookies then i pass the username and encrypted password from page to page.
I'd avoid putting username/password in the form unless there's no
alternative. It'd be safer to use the PHP4 session library (which can be
used without cookies) for this sort of thing.
> btw, there doesn't seem to be a single built-in decryption function in
php,
> is there? not necessarily a bad thing...
Not in the core, no. There's the entire mcrypt library (See Encryption
Functions in the manual) which provides a number of encryption algorithms.
(BTW - md5() isn't encryption. It's a cryptographic hash because you can
never retrieve the input.)
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Sebastian Bergmann: "Re: [PHP] File Size problems when uploading via PHP and Apache"
- Previous message: Chris Adams: "Re: [PHP] passwords"
- In reply to: Abdul-Kareem Abo-Namous: "Re: [PHP] passwords"
- Next in thread: scottrus <email protected>: "Re: [PHP] passwords"
- Reply: scottrus <email protected>: "Re: [PHP] passwords"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

