• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Secure website passwords

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    Secure website passwords

    Can somebody point me, in very general terms, towards best approach to keeping a password list secure on a website?

    I want to issue purchasers with a serial number so they can download add-ins from the website. I know how to check a serial number entered is in the list using a bit of PHP but not sure how to make the list secure.

    At moment it's just a text file that anyone could read. Or perhaps not if I used the right permissions? I really don't know enough server side to even know if I have a problem.

    Ta for any answers.

    PS Fate of the Western world sort of security not necessary, just safe from your average know a bit sort of IT bod and super intelligent grey squirrels.

    #2
    whats the platform ?

    Are we talking about apache or iis or something else ?

    Ignoring whatever might be possible with the platform and just thinking application can you put the file somewhere other than under the web root and hence have it only accessible by your scripts (which of course just verify a password rather than returning it) ?

    Comment


      #3
      It is impossible to secure any server (even Linux) against super intelligent grey squirrels.

      Saying that, a text file that is secured through file permissions or a simple database (MySQL or similiar?) will do the trick.

      As long as users cannot gain access to the file (i.e. download it), it should be secure enough for a noddy site.

      Comment


        #4
        use a database

        and an encrypting algorithm such as md5. quite straightforward and cheap and effective. it gives a one-way encryption of passwords. you could even use an mdb file.

        Comment


          #5
          use john the ripper

          Use the linux tool known as "john the ripper" to check the security of passwords. Search for "john the ripper, linux" on google.

          Comment


            #6
            Re: use john the ripper

            On apache, most common configurations disallow the viewing of any file who's name begins with .ht

            So put the passwords in a file named .htpasswords and ftp it to the server. You won't be able to see it when it has been uploaded but it can be read by a cgi script.

            Comment


              #7
              Re: use john the ripper

              That solution might work but I think the "standard" implementation for this would be to store the passwords in a MySQL database table, then your PHP code can retrieve and use them when the page is called.

              Comment


                #8
                Re: use john the ripper

                might ??????

                Comment


                  #9
                  Re: use john the ripper

                  Sorry I wasn't impying it doesn't - but I haven't tested it myself so I don't know.

                  I should have said: "another solution would be to ...."

                  Sorry again.

                  Comment


                    #10
                    I'd use known algorithm to generate and check cryptographically strong serials. This would allow not to keep a list with serials anywhere on the site and I'd use compiled and obfuscated code to check keys. Of course if I was really paranoid I'd keep that code behind firewall elsewhere so that website would have to request/check keys via SSL with some good monitoring present to ensure no one tries to guess too many serials.

                    Comment

                    Working...
                    X