LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 01-10-2005, 09:23 PM   #1
gk_
LQ Newbie
 
Registered: Jul 2004
Location: /home/gk
Distribution: Debian 3.1 Slackware 10.1
Posts: 29

Rep: Reputation: 15
PHP md5 oddity


I'm not sure if this is the right place but the programming form i post at is down (somethingleet)

So I have two small chunks of code

Code:
md5('password');
returns 5f4dcc3b5aa765d61d8327deb882cf99

Code:
$password='password';
md5($password);
returns 86a65acd94b33daa87c1c6a2d1408593

I would think they create the same result but i get differnt values, any explination?

OMG, oops I found I typed the variable name wrong...

I'm soo embarrassed. You look at something soo long and it seems right. untill you retype the whole thing.

Last edited by gk_; 01-10-2005 at 09:37 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
php + MD5 ==> gone crazy..!!! ALInux Programming 2 11-11-2005 04:25 PM
More of an oddity than a problem... Neowulf Linux - Newbie 3 11-09-2005 05:49 PM
using iso.md5 and iso.md5.asc Tyir Linux - Newbie 3 07-11-2004 12:45 AM
A little oddity in the forums Mephisto LQ Suggestions & Feedback 3 01-06-2003 08:47 AM
fdisk oddity neo77777 Linux - General 4 08-16-2002 09:43 AM


All times are GMT -5. The time now is 03:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration