RE: [PHP] Re: Securing user table with sha function
| From: | Tim | Date: | Tue, 20 Feb 2007 10:10:34 +0000 |
| Subject: | RE: [PHP] Re: Securing user table with sha function | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-249072@lists.php.net to get a copy of this message | ||
> -----Message d'origine-----
> De : Fergus Gibson [mailto:news@fgibson.ca]
> Envoyé : lundi 19 février 2007 12:01
> À : php-general@lists.php.net
> Objet : [PHP] Re: Securing user table with sha function
>
> Tim wrote:
> > Now moving on into other aspects of security :P I was thinking of a
> > way to secure my login inputs the best way possible.
> [...]
>
> Maybe I'm missing something, but why not simply inspect and
> clean input to ensure that it's always properly escaped and
> safe to send to your database? It seems to me that's the
> most sensible way to address SQL injection.
Yes i agree partially, an error in the "cleaning" algo could easily open up
to injection, their are so many "workarounds" to standard input filtering
how to catch them all?
> Hashing the data in your database has drawbacks, and anyway,
> do you want them to see even hashed data? I sure don't.
>
> --
> PHP General Mailing List (http://www.php.net/) To
> unsubscribe, visit: http://www.php.net/unsub.php
>