Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jul 2006
    Location
    Cincinnati, OH
    Posts
    85
    Thanks
    1
    Thanked 0 Times in 0 Posts

    How secure would this be? (login)

    I am not very well read on security when it comes to php so I am not sure how secure the following scenario would be.

    With the site I am currently working on I want to have a login form. There will only be two people logging on to the site (myself and my girlfriend, although she will be loggin in very seldom I image). Instead of connecting to a database to get the username and passwords, is it safe to just have them hard coded into the php to check and see if the given values match? Its not a huge concern as it is just a site I am creating for our future wedding. I could do it all without the login but I would like it to have a backend so we can do some editing whenever/wherever we are.

    Thanks!

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,495
    Thanks
    8
    Thanked 1,089 Times in 1,080 Posts
    For what you're doing, no problem.

    If someone sees the password written down on a desk or something,
    they could go in and wreck things ... but who is going to really take
    the time?

    For quick and easy password checks, hardcoding will work good.

  • #3
    New Coder
    Join Date
    Jul 2006
    Location
    Cincinnati, OH
    Posts
    85
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Awesome, thanks! I really didn't see where it would be a problem but wanted to check.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •