I need a secured login script

Links for php scripts

Moderators: macek, egami, gesf

uday123
New php-forum User
New php-forum User
Posts: 5
Joined: Sat Mar 25, 2006 2:19 am

I need a secured login script

Postby uday123 » Sat Mar 25, 2006 2:50 am

Hi Friends,

I am new to PHP technology.I need a small requirement in PHP.
I am building a tool which needs login page.I don't want to use any database.But the password security should be high.I want to use encryption algorithms(md5,hash etc.). So please help me for making the script as per my requirements.

Please send me the scripts if u people already build it.

Regards,
Uday

User avatar
Coditor
New php-forum User
New php-forum User
Posts: 243
Joined: Wed Feb 01, 2006 9:18 am
Location: Netherlands
Contact:

Postby Coditor » Sat Mar 25, 2006 2:15 pm

If you don't want to use a database, the password will have to be stored somewhere else, eg a PHP script. However, that immediately makes the script less secure.

Your best bet is to secure the entire folder using .htaccess files (for apache) or IISPassword (IIS).

Coditor

sergeys
New php-forum User
New php-forum User
Posts: 2
Joined: Sat Jan 07, 2006 2:42 pm
Location: USA
Contact:

Re: I need a secured login script

Postby sergeys » Sat Apr 01, 2006 5:14 pm

Hi,

Why you do not want to use database. You can use file then, but it will be possible to read file
even if you encripted password. For example 5f4dcc3b5aa765d61d8327deb882cf99 is encripted word "passsword". Use database. it is better.

You can download complete php application with security implemented.

go to http://www.configure-all.com/fusebox.php and download exam.zip file

User avatar
gesf
Moderator
Moderator
Posts: 1717
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden
Contact:

Postby gesf » Sun Apr 02, 2006 4:29 pm

Using some DB is the best option no doubt.
Like coditor said, if you're about to use Apache for that it can be also easy as you can put all user names/pass line by line in the .htpasswd.
You can also create a simple PHP script to handle that (insert/edit/remove).

patna_in
New php-forum User
New php-forum User
Posts: 103
Joined: Sun Feb 06, 2005 10:54 am
Contact:

Re: I need a secured login script

Postby patna_in » Fri Feb 01, 2008 10:28 pm

Hay gesf, Can u tell me about .htpasswd file. How can I read/write/edit that file & how can I access my site with that file. I never used that file. So, pls tell me from the begining. Thanks in Advance.


Return to “PHP Scripts”

Who is online

Users browsing this forum: No registered users and 1 guest