Re: What is the Basic function to encode the password upon the authentication..
| From: | Scott Fletcher | Date: | Wed, 31 Dec 2003 13:59:36 +0000 |
| Subject: | Re: What is the Basic function to encode the password upon the authentication.. | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-173540@lists.php.net to get a copy of this message | ||
Thanks, that does help!!!
FletchSOD
"John W. Holmes" <holmes072000@charter.net> wrote in message
news:3FF21569.2070801@charter.net...
> Scott Fletcher wrote:
>
> > What is the function exactly for encoding the user's typed password
in
> > PHP after the HTTP Authentication pop-up window by Apache was submitted?
I
> > tried the base64_encode() but it is not the right function. The
> > authentication header here is ..
> >
> > --snip--
> > header('WWW-Authenticate: Basic realm="My Private Stuff"');
> > header('HTTP/1.0 401 Unauthorized');
> > --snip--
>
> Encoding it for what? It comes into PHP as a $_SERVER variable in plain
> text. If you want to compare it to an .htaccess type password, then I
> think crypt() is what you need.
>
> --
> ---John Holmes...
>
> Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
>
> php|architect: The Magazine for PHP Professionals www.phparch.com