eregi filter

This is a discussion on eregi filter within the PHP General forums, part of the PHP Programming Forums category; Anyone have a good eregi filter for passwords? Regards R...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-19-2003
Erin
 
Posts: n/a
Default eregi filter

Anyone have a good eregi filter for passwords?


Regards

R
Reply With Quote
  #2 (permalink)  
Old 11-19-2003
John W. Holmes
 
Posts: n/a
Default Re: [PHP] eregi filter

Erin wrote:

> Anyone have a good eregi filter for passwords?


Yes.

http://homepages.tesco.net/~J.deBoyn...o-answers.html

--
---John Holmes...

Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals – www.phparch.com
Reply With Quote
  #3 (permalink)  
Old 11-19-2003
John W. Holmes
 
Posts: n/a
Default Re: [PHP] eregi filter

Derek Ford wrote:
> Erin wrote:
> >
> > Anyone have a good eregi filter for passwords?

>
> well, for one thing, don't use ereg. Use pcre, as it is faster.
>
> preg_match('/^[a-zA-Z0-9]{5,16}$/',$blah);
> that will validate a password containing only upper or lowercase letters
> and numbers, between 5 and 16 characters.
>


So "aaaaa" is a good password?

--
---John Holmes...

Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals – www.phparch.com
Reply With Quote
  #4 (permalink)  
Old 11-19-2003
John Nichel
 
Posts: n/a
Default Re: [PHP] eregi filter

John W. Holmes wrote:
> Derek Ford wrote:
>
>> Erin wrote:

>
> > >

>
>> > Anyone have a good eregi filter for passwords?

>>
>> well, for one thing, don't use ereg. Use pcre, as it is faster.
>>
>> preg_match('/^[a-zA-Z0-9]{5,16}$/',$blah);
>> that will validate a password containing only upper or lowercase
>> letters and numbers, between 5 and 16 characters.
>>

>
> So "aaaaa" is a good password?
>


It's an excelent password. I think you should change your root password
to that on all systems you have root on. Oh, and another thing....send
me the IP's to those machines. ;)

--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
Reply With Quote
  #5 (permalink)  
Old 11-19-2003
Derek Ford
 
Posts: n/a
Default Re: [PHP] eregi filter

Erin wrote:

>Anyone have a good eregi filter for passwords?
>
>
>Regards
>
>R
>
>
>

well, for one thing, don't use ereg. Use pcre, as it is faster.

preg_match('/^[a-zA-Z0-9]{5,16}$/',$blah);
that will validate a password containing only upper or lowercase letters
and numbers, between 5 and 16 characters.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:51 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0