Re: php-db Digest 25 Jun 2003 15:10:42 -0000 Issue 1899
| From: | JeRRy | Date: | Fri, 27 Jun 2003 11:36:38 +0000 |
| Subject: | Re: php-db Digest 25 Jun 2003 15:10:42 -0000 Issue 1899 | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-28943@lists.php.net to get a copy of this message | ||
From: "Jason Wong" <php-db@gremlins.biz>
To: php-db@lists.php.net
Date: Wed, 25 Jun 2003 04:03:53 +0800
Subject: Re: [PHP-DB] md5 question!
Plain Text Attachment [ Save to my Yahoo! Briefcase |
Download File ]
On Tuesday 24 June 2003 22:36, Peter Beckman wrote:
> Most sites save/allow an 8 character password.
Allowing
alphanumerics and
> underscore, period and pound (_, ., #), that is
39^8, or
5,352,009,260,481
> or about 5 trillion possible passwords. If you
allow more than 8
> characters, that number increases.
If you're using md5 then there is no inherent
restriction on what
characters
and number of characters that can be used in the
password. The
limitations
are in the user, they'll probably use their phone
number, DOB, dog's
name --
anything that's easy to remember ;-)
Hi,
Okay with the followup above is there a way to handle
a database table that will only allow certain
characters for a password? (e.g. Only letters and
numbers and not _';:)(*&^%$# etc...)
I guess a easy managment way to do it is either via
the PHP code or via JavaScript. Maybe more
professional would be in the PHP code. Maybe the 'if'
statement would be ideal? Any suggestions?
Also while on php talk how do I make a java popup
message appear in a PHP code? Is there a way to do
this, alert? There are many ways to do it im
Javascript but was wondering if PHP had a way to do it
in the PHP code itself. (hidden away if possible)
Jerry
http://mobile.yahoo.com.au - Yahoo! Mobile
- Check & compose your email via SMS on your Telstra or Vodafone mobile.