Re: How do you allow any n digit password in .htpasswd

Giganews Newsgroups
Subject: Re: How do you allow any n digit password in .htpasswd
Posted by:  HansH (hansh@invalid.invalid)
Date: Thu, 17 Jun 2010

"dorayme" <doray…@optusnet.com.au> schreef in bericht
news:dorayme-F2A2E1.204631170620…@news.albasani.net...
> and you use an encrypter to generate the password that goes into
> .htpassd and it might look like this:
> johnsmith:hgcrBSZ7XJ6hq
>
> If it was just
> johnsmith:
>
> I assume it would be accessible on mere correct name entry?
http://httpd.apache.org/docs/2.2/programs/htpasswd.html
You might be right on some platforms, but commonly the missing part is the
result of encryption and CANNOT be blank.

> Is there anything you could write if you wanted any 7 digit
> number (0-9 to be used) in any order without having to supply all
> permutations.
Perhaps you'll find a loony tune in PHP
http://php.net/manual/en/features.http-auth.php

> Or is htaccess/htpasswd not that sophisticated?
Fortunately it is indeed not developed to a high degree of complexity

HansH

Replies

None

In response to

How do you allow any n digit password in .htpasswd posted by dorayme on Thu, 17 Jun 2010