General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old May 30th, 2002, 07:00 AM
deff_lee deff_lee is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2002
Posts: 11 deff_lee User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Ideal User Login And Management

Hi all,

i want to know, what the ideal feature fro user login and management with php and mysql?

sometime i look at free user management script and i get
the password was crypted by md5(), i don't know what is the advantage using this? and how to retrieve original password if in mysql the password was crypted?

thnak's all

-- deff

Reply With Quote
  #2  
Old May 30th, 2002, 06:46 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
i think with md5 theirs a uncrypt fucntion or something (i could be wrong). still even if it doesnt it can still check the login like this

say your password is: devarticles (example only!)
when its encrypted it looks something like this:
sdkj32kj4897fkh9832kldfs08782lkn

when you login, your password will be encrypted again and checked against the encrypted password in the database,
sdkj32kj4897fkh9832kldfs08782lkn = sdkj32kj4897fkh9832kldfs08782lkn


if your going to have a secure login/admin system, i suggest that you program your own for security reasons, if you use a pre-made system, your got a higher chance of being hacked into.

hope this helps

Reply With Quote
  #3  
Old May 30th, 2002, 10:34 PM
MTran MTran is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 9 MTran User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Yep, I couldn't agree with Ben more. There isnt really a "general" perfect login system, but here are my tips:

- Use a secure server for the login page if you can
- Encrypt both the username AND password for double security
- Keep the database in a server that isn't connected to the net
- Always verify user input to make sure that it's valid

If you implement these steps then you really can't go wrong. The ideal login system should be secure, fast, flexible and encrypted if possible. There are many encryption libraries available for PHP, so maybe one of those might suite your needs?

Reply With Quote
  #4  
Old May 30th, 2002, 10:52 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
just a tip, instead of using sessions to store the data, use a database to store the session id, ip and what ever other data you need, a db is more secure than sessions

Reply With Quote
  #5  
Old May 30th, 2002, 11:25 PM
deff_lee deff_lee is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2002
Posts: 11 deff_lee User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thank's to ben and Mtran

i want to ask u,

if i crypt the password with md5(), how can i retrieve the original password?

-- deff

Reply With Quote
  #6  
Old May 30th, 2002, 11:35 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
i just did some research on md5 and it seems theirs no unencrypt function, so unless their is another way, i dont think you can retrive the password, i think the reason why is becuase if their was a uncrypt function it would make it easy for someone to uncrpty your password and use it to get in the front door

Reply With Quote
  #7  
Old March 25th, 2004, 11:54 AM
agrawalp200 agrawalp200 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 1 agrawalp200 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Developer

I think the md5 is just a one-way encryption designed to make sure
no one can decrypt and see the values back. Only the encrypted values
can be compared with the previously encrypted to authenticate.
If you want this capability try DES3 ro something else

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > Ideal User Login And Management


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT