Re: Re: Encrypt data to base for authentication...
| From: | Abdul-wahid Paterson | Date: | Tue, 18 Mar 2003 23:15:39 +0000 |
| Subject: | Re: Re: Encrypt data to base for authentication... | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-140219@lists.php.net to get a copy of this message | ||
On Tue, 2003-03-18 at 21:14, Scott Fletcher wrote:
> Groan, I meant 'Basic' not 'Base'......
> > I am trying to figure out how to encrypt the data using the base only.
> > The webserver use the base authentication. I have been searching the PHP
> > manual and I only saw base64_encode() but it is not the right algorithm..
> > Does anyone know the php function for the Base encryption?
In basic authentication the password goes across the network in plain
text and the server therefore has a choice in how it stores the
password. There are different ways of doing this usually involving a).
DES b). md5 both injected with a bit of salt.
Different implementations use different amounts of salt etc. Anyway, the
function you are looking for is probably crypt:
http://uk.php.net/manual/en/function.crypt.php
Regards,
Abdul-Wahid
--
Abdul-Wahid Paterson
Lintrix Networking & Communications ltd.
Web: http://www.lintrix.net/
Tel: +44 7801 070621
Email/Jabber: aw@lintrix.net
--------------------------------------------------------------------
Web-Hosting | Development | Security | Consultancy | Domains
--------------------------------------------------------------------
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc