Anthony Wlodarski wrote:
I was just writing something up and I have a question about saving data from forms for a password.
So the logic for what I want to do is something like this:
Input from form -> check for magic quotes(if not then add quotes) -> md5 value -> save to database.
Now what happens if you change the logic to:
Input from form -> md5 value -> save to database.
Other individuals I have discussed this with would say that if you are on a platform without magic quotes then the md5 values will be different. Is this the case?

That may very well be, but that comes only into play when you carry the database from one system with magicquotes to one without or vice versa, or end up having the magicquotes enabled after an update, but not before or the other way around. As long as you operate on a system that either has magicquotes or not it doesn't matter in the end. I use the same password obfuscation and used it on several systems without a problem, but maybe I was just lucky?

David
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

Reply via email to