username and password in database or in script?

  • ultimate11
  • Student
  • Student
  • No Avatar
  • Joined: Feb 02, 2011
  • Posts: 86
  • Status: Offline

Post March 2nd, 2011, 3:39 am

which is better and safer to place/stored the username or password when login is in database or in script? :?: :tempertandrum:
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post March 2nd, 2011, 3:39 am

  • ultimate11
  • Student
  • Student
  • No Avatar
  • Joined: Feb 02, 2011
  • Posts: 86
  • Status: Offline

Post March 15th, 2011, 2:19 am

I made a websites that require only the admin can change and edit or delete some profiles so i decided to put a security a password in some page of my sites..now my question is which is better to put the password in database or in script .?
  • tastysite
  • Proficient
  • Proficient
  • User avatar
  • Joined: Apr 09, 2008
  • Posts: 349
  • Loc: Brighouse, West Yorkshire, England
  • Status: Offline

Post March 15th, 2011, 12:00 pm

It depends on what script you mean if you are talking about JavaScript (I know you are probably not but you get my point) its not that safe but if its in php (or any other server-side code then you will be okay) I must say I don't quiet get why you would store the pass in a database apart from anting else you have to have a table just for that one password so its a bit of a waste of time and memory.
^__^
  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13458
  • Loc: Florida
  • Status: Offline

Post March 15th, 2011, 5:10 pm

Well, the password to access the database has to be stored in the script somewhere, doesn't it?
Strong with this one, the sudo is.
  • ultimate11
  • Student
  • Student
  • No Avatar
  • Joined: Feb 02, 2011
  • Posts: 86
  • Status: Offline

Post March 18th, 2011, 12:03 am

but its much easier to change the password in database in case you want to change it. :D
  • AdamC
  • Beginner
  • Beginner
  • User avatar
  • Joined: Dec 16, 2010
  • Posts: 38
  • Status: Offline

Post March 28th, 2011, 7:27 am

It's more in the design than anything regardless of whether you use DB or script (server-side).

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 108 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.