login form

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jito
Forum Commoner
Posts: 85
Joined: Sat Mar 25, 2006 4:32 am
Location: india

login form

Post by jito »

hi,
i want to make a login form without using database. will it be secure to use a file instead? any other alternatives.
klarinetking
Forum Commoner
Posts: 59
Joined: Mon Jul 24, 2006 9:43 am

Post by klarinetking »

Hi,

As long as you make sure that the file cannot be accessed by anyone, for example by placing it outside the webroot, it should be fairly safe.

klarinetking
jito
Forum Commoner
Posts: 85
Joined: Sat Mar 25, 2006 4:32 am
Location: india

Post by jito »

is it wll be better if i use sha1 or md5....?
User avatar
ronverdonk
Forum Commoner
Posts: 34
Joined: Sat Jun 10, 2006 7:06 am
Location: Netherlands

YESSIR

Post by ronverdonk »

I don't want to go into a discussion about MD5 or SHA1 or whatever but thou shall always encrypt sensitive info, especially passwords!
Post Reply