The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> PHP data encryption
joyful
post Aug 14 2011, 12:36 AM
Post #1


Advanced Member
****

Group: Members
Posts: 239
Joined: 15-November 10
Member No.: 13,147



Hey!

I was wondering what the standard was for encrypting data in PHP. I am sending data to a MySQL database, my data is mainly my users email address and passwords... How much encryption is necessary? Is converting all of my data into md5 hashes good enough? Are md5 hashes simply the binary version?

I know there are other ways of preforming PHP encryption... Should I encrypt my users data more on top of md5?

Thanks a lot in advance! blush.gif

--
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
raydin
post Aug 14 2011, 12:50 AM
Post #2


Newbie
*

Group: Members
Posts: 15
Joined: 13-August 11
Member No.: 15,164



MD5 is what I use and it should be fine. However, I'd wait to see what others here have to say. smile.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
SteveL
post Oct 19 2011, 08:15 PM
Post #3


Newbie
*

Group: Members
Posts: 19
Joined: 25-July 07
Member No.: 3,445



I'd take a look at the PHP crypt() function, as it's very likely more suitable for password hashing than MD5.

http://php.net/manual/en/function.crypt.php

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
joyful
post Oct 19 2011, 08:27 PM
Post #4


Advanced Member
****

Group: Members
Posts: 239
Joined: 15-November 10
Member No.: 13,147



Thank you SteveL and raydin! smile.gif

I will have a look at crypt().

This post has been edited by joyful: Oct 19 2011, 08:28 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 29th March 2024 - 08:27 AM