School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 307,031 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,212 people online right now. Registration is fast and FREE... Join Now!




PHP encryption functions

 

PHP encryption functions

noorahmad

22 Jul, 2009 - 04:00 AM
Post #1

Webmaster
Group Icon

Joined: 12 Mar, 2009
Posts: 2,087



Thanked: 142 times
Dream Kudos: 1350
My Contributions
hi guys there are loots of encryption function which one is the best i mean secure i am using [md5] and you?

User is offlineProfile CardPM
+Quote Post


ShaneK

RE: PHP Encryption Functions

22 Jul, 2009 - 06:35 AM
Post #2

require_once("brain.php"); //Fatal error :/
Group Icon

Joined: 10 May, 2009
Posts: 701



Thanked: 47 times
Dream Kudos: 75
Expert In: PHP, MySQL

My Contributions
I use the password warp function I made, which has recently been updated to use SHA512. SHA512 is supposed to be more secure because there's less room for collisions - after all, it's a 128 character string in the end.

By the way - technically speaking, this is hashing, not encrypting.

Yours,
Shane~

This post has been edited by ShaneK: 22 Jul, 2009 - 06:51 AM
User is offlineProfile CardPM
+Quote Post

KuroTsuto

RE: PHP Encryption Functions

22 Jul, 2009 - 01:04 PM
Post #3

D.I.C Head
Group Icon

Joined: 13 Feb, 2009
Posts: 104



Thanked: 12 times
Dream Kudos: 25
My Contributions
I'm using some custom steganographic functions that hash my data via a "passphrase" then embed it into a random Flickr photo....

BWAHA! Just messin with you. But that would be kinda sick... though highly impractical for most applications... But still sick tongue.gif
User is offlineProfile CardPM
+Quote Post

Valek

RE: PHP Encryption Functions

1 Aug, 2009 - 10:34 PM
Post #4

The Real SkyNet
Group Icon

Joined: 8 Nov, 2008
Posts: 627



Thanked: 43 times
Dream Kudos: 175
My Contributions
Heh, imagine the resources it'd take to check that password. My computer lags just thinking about it tongue.gif
User is offlineProfile CardPM
+Quote Post

JackOfAllTrades

RE: PHP Encryption Functions

2 Aug, 2009 - 02:47 PM
Post #5

I exist to Google your problems.
Group Icon

Joined: 23 Aug, 2008
Posts: 5,316



Thanked: 454 times
Dream Kudos: 50
Expert In: Being annoyed with lazy people.

My Contributions
To nip an misconception in the bud right away: md5 (as well as the SHA1 and its variants) is not a means of encryption, but a cryptograhic hashing algorithm.


User is offlineProfile CardPM
+Quote Post

ShaneK

RE: PHP Encryption Functions

2 Aug, 2009 - 02:52 PM
Post #6

require_once("brain.php"); //Fatal error :/
Group Icon

Joined: 10 May, 2009
Posts: 701



Thanked: 47 times
Dream Kudos: 75
Expert In: PHP, MySQL

My Contributions
Hey! I said that in my post! Well...kinda... Lol

Yours,
Shane~
User is offlineProfile CardPM
+Quote Post

JackOfAllTrades

RE: PHP Encryption Functions

2 Aug, 2009 - 03:36 PM
Post #7

I exist to Google your problems.
Group Icon

Joined: 23 Aug, 2008
Posts: 5,316



Thanked: 454 times
Dream Kudos: 50
Expert In: Being annoyed with lazy people.

My Contributions
You're right, you did. Sorry about that, I missed it. blush.gif
User is offlineProfile CardPM
+Quote Post

chtombleson

RE: PHP Encryption Functions

3 Nov, 2009 - 04:39 PM
Post #8

New D.I.C Head
*

Joined: 28 Sep, 2009
Posts: 11



Thanked: 1 times
My Contributions
I just use md5 has it meets my encryption requirements
User is offlineProfile CardPM
+Quote Post

ShaneK

RE: PHP Encryption Functions

3 Nov, 2009 - 08:53 PM
Post #9

require_once("brain.php"); //Fatal error :/
Group Icon

Joined: 10 May, 2009
Posts: 701



Thanked: 47 times
Dream Kudos: 75
Expert In: PHP, MySQL

My Contributions
QUOTE(chtombleson @ 3 Nov, 2009 - 05:39 PM) *

I just use md5 has it meets my encryption requirements


If you read the rest of the thread you'll be able to tell that MD5 is not encryption, it's hashing. Encryption indicates that it can be undone.

Yours,
Shane~

This post has been edited by ShaneK: 3 Nov, 2009 - 08:54 PM
User is offlineProfile CardPM
+Quote Post

nightscream

RE: PHP Encryption Functions

5 Nov, 2009 - 08:05 AM
Post #10

D.I.C Head
**

Joined: 4 Dec, 2008
Posts: 113



Thanked: 2 times
My Contributions
I think noorahmad(the topic starter) meant hashing instead of encrypting.
I most of the time use md5 with password and a hash(random key)

example
hash = 5(d (random)
password = test
passwordmd5 = md5(testhash);

in php(of course in this example the hash isn't being calculated randomly)
CODE

$hash = "5(d"; // (random)
$password = "test";
$passwordmd5 = md5($password.$hash);


This post has been edited by nightscream: 5 Nov, 2009 - 08:06 AM
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/21/09 08:30AM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month