9 Replies - 1199 Views - Last Post: 05 November 2009 - 09:05 AM

#1 noorahmad  Icon User is offline

  • Untitled
  • member icon

Reputation: 209
  • View blog
  • Posts: 2,290
  • Joined: 12-March 09

PHP encryption functions

Posted 22 July 2009 - 05:00 AM

hi guys there are loots of encryption function which one is the best i mean secure i am using [md5] and you?
Is This A Good Question/Topic? 0
  • +

Replies To: PHP encryption functions

#2 ShaneK  Icon User is offline

  • require_once("brain.php"); //Fatal error :/
  • member icon

Reputation: 240
  • View blog
  • Posts: 1,224
  • Joined: 10-May 09

Re: PHP encryption functions

Posted 22 July 2009 - 07:35 AM

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 July 2009 - 07:51 AM

Was This Post Helpful? 0
  • +
  • -

#3 KuroTsuto  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 42
  • View blog
  • Posts: 182
  • Joined: 13-February 09

Re: PHP encryption functions

Posted 22 July 2009 - 02:04 PM

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 :P
Was This Post Helpful? 0
  • +
  • -

#4 Valek  Icon User is offline

  • The Real Skynet
  • member icon

Reputation: 542
  • View blog
  • Posts: 1,713
  • Joined: 08-November 08

Re: PHP encryption functions

Posted 01 August 2009 - 11:34 PM

Heh, imagine the resources it'd take to check that password. My computer lags just thinking about it :P
Was This Post Helpful? 0
  • +
  • -

#5 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6048
  • View blog
  • Posts: 23,473
  • Joined: 23-August 08

Re: PHP encryption functions

Posted 02 August 2009 - 03:47 PM

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.
Was This Post Helpful? 1
  • +
  • -

#6 ShaneK  Icon User is offline

  • require_once("brain.php"); //Fatal error :/
  • member icon

Reputation: 240
  • View blog
  • Posts: 1,224
  • Joined: 10-May 09

Re: PHP encryption functions

Posted 02 August 2009 - 03:52 PM

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

Yours,
Shane~
Was This Post Helpful? 0
  • +
  • -

#7 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6048
  • View blog
  • Posts: 23,473
  • Joined: 23-August 08

Re: PHP encryption functions

Posted 02 August 2009 - 04:36 PM

You're right, you did. Sorry about that, I missed it. :blush:
Was This Post Helpful? 0
  • +
  • -

#8 chtombleson  Icon User is offline

  • New D.I.C Head

Reputation: 2
  • View blog
  • Posts: 22
  • Joined: 28-September 09

Re: PHP encryption functions

Posted 03 November 2009 - 05:39 PM

I just use md5 has it meets my encryption requirements
Was This Post Helpful? 0
  • +
  • -

#9 ShaneK  Icon User is offline

  • require_once("brain.php"); //Fatal error :/
  • member icon

Reputation: 240
  • View blog
  • Posts: 1,224
  • Joined: 10-May 09

Re: PHP encryption functions

Posted 03 November 2009 - 09:53 PM

View Postchtombleson, on 3 Nov, 2009 - 05:39 PM, said:

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: 03 November 2009 - 09:54 PM

Was This Post Helpful? 0
  • +
  • -

#10 nightscream  Icon User is offline

  • D.I.C Head

Reputation: 19
  • View blog
  • Posts: 237
  • Joined: 04-December 08

Re: PHP encryption functions

Posted 05 November 2009 - 09:05 AM

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)
$hash = "5(d"; // (random)
$password = "test";
$passwordmd5 = md5($password.$hash);


This post has been edited by nightscream: 05 November 2009 - 09:06 AM

Was This Post Helpful? 1
  • +
  • -

Page 1 of 1