IT Community - Software Programming, Web Development and Technical Support

How can we encrypt the username and password using PHP?

This is a discussion on How can we encrypt the username and password using PHP? within the PHP Programming forums, part of the Web Development category; Hi, Any one Explain encrypt the Username and Password in PHP....


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > PHP Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 02-07-2008, 10:16 PM
sundarraja sundarraja is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 174
sundarraja is on a distinguished road
Question How can we encrypt the username and password using PHP?

Hi,

Any one Explain encrypt the Username and Password in PHP.
__________________
R.Sundar Raja
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-11-2008, 01:57 AM
sundarraja sundarraja is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 174
sundarraja is on a distinguished road
Thumbs up Re: How can we encrypt the username and password using PHP?

You can use the MySQL PASSWORD() function to encrypt username and password.
For example,
INSERT into user (password, ...) VALUES (PASSWORD($password”)), ...);
__________________
R.Sundar Raja
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-12-2008, 05:44 PM
Jeyaseelansarc Jeyaseelansarc is offline
D-Web Genius
 
Join Date: Mar 2007
Location: Chennai
Posts: 1,159
Jeyaseelansarc is on a distinguished road
Send a message via AIM to Jeyaseelansarc
Default Re: How can we encrypt the username and password using PHP?

Quote:
Originally Posted by sundarraja View Post
Hi,

Any one Explain encrypt the Username and Password in PHP.
HI,
In PHP we can use base64_encode($user) to encode.
__________________
With,
J. Jeyaseelan

Everything Possible
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 05-15-2008, 06:29 AM
sureshbabu sureshbabu is offline
D-Web Programmer
 
Join Date: Jul 2007
Location: India
Posts: 98
sureshbabu is on a distinguished road
Send a message via AIM to sureshbabu Send a message via MSN to sureshbabu Send a message via Yahoo to sureshbabu Send a message via Skype™ to sureshbabu
Default Re: How can we encrypt the username and password using PHP?

md5 is one way encryption which is not subject to decryption.
__________________
Thanks
Regards
Sureshbabu Harikrishnan
+91 9884320017
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Username and Password verification in SQL stored procedure. oxygen Database Support 1 12-23-2007 08:43 PM
If any possible for Html page encrypt sathian HTML, CSS and Javascript Coding Techniques 1 12-03-2007 07:52 PM
Username,Password verfication in SQL Server 2005 itself using stored procedure oxygen Database Support 0 07-19-2007 11:21 PM
How to encrypt app.config file in .net.? bluesky C# Programming 0 07-17-2007 09:59 PM
Code to encrypt the Password or any string hanusoftware ASP and ASP.NET Programming 0 07-05-2007 01:58 AM


All times are GMT -7. The time now is 03:08 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0