Freelancers Network
 
skill list top cap
Homepage
Join the Freelancer's Network
Update your details
Find a freelancer
Post a project
Find a project
Projects Archive
Post a job
Find a job
Jobs Archive
See Dan's Pages
See Andy's Pages
Link to this site
Resources
Join/Leave Forum
Forum Messages
+Additions+ Adverts
Advertising
Contact Us
Subscribe to our newsletter - enter your email address and hit return
Freelancers.net is owned and operated by Andy Stowell and Dan Winchester
skill list end cap
guru web hostcom

Find me again on Freelancers.net

Re[2]: FN-FORUM PHP/Perl Crypt()

date posted 10th January 2003 18:16

Already tried that one, no luck.

-- Richard
http://www.rwatt.co.uk

Friday, January 10, 2003, 5:56:06 PM, you wrote:
---------------------------------------
GH> Hi Richard,

GH> Have you read the user notes at:

GH> http://www.php.net/manual/en/function.crypt.php

GH> "
GH> crypt() on operating systems where multiple encryption mechanisms are
GH> supported gets triggered by the actual salt you feed it. If you feed
GH> crypt a 2-char salt, then it will use DES encryption. If you feed it a
GH> 12-char salt starting with $1$ it will use MD5. If you feed it a
GH> 17-char salt starting with $2$ it will do Blowfish.


GH> It has been theorized that feeding salt for an encryption method that is
GH> not supported by the OS will result in some other encryption being
GH> employed. If true, it might be possible to detect unsupported
GH> encryption methods by providing a salt and comparing the first n
GH> characters of the result with the provided salt.
GH> "

GH> If you know what encryption method perl is using you may be able to set
GH> php to do the same.

GH> HTH

GH> George





GH> Richard Watt wrote:
>> Hello all, does anyone have a clue how to force PHP and Perl to
>> provide the same results
>> PHP : crypt($password, "AB");
>> produces something completely different from the exact same function
>> in Perl, anything i'm missing, or is it completely hopeless?
>>
>> Any other lightweight password scrambling I can safely use in both
>> languages (other than MD5 - the Perl module isnt installed on this
>> server...)
>>
>> ---------------------------
>> Richard Watt Website Design
>> site : http://www.rwatt.co.uk
>> email : [EMAIL REMOVED]
>> phone : (0131) 466 0700
>> fax : (0131) 466 1813



Messages by Day
January 31st 2003
January 30th 2003
January 29th 2003
January 28th 2003
January 27th 2003
January 26th 2003
January 25th 2003
January 24th 2003
January 23rd 2003
January 22nd 2003
January 21st 2003
January 20th 2003
January 19th 2003
January 18th 2003
January 17th 2003
January 16th 2003
January 15th 2003
January 14th 2003
January 13th 2003
January 12th 2003
January 11th 2003
January 10th 2003
January 9th 2003
January 8th 2003
January 7th 2003
January 6th 2003
January 5th 2003
January 4th 2003
January 3rd 2003
January 2nd 2003
January 1st 2003


Messages by Month
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003


Messages by Year
2008
2007
2006
2005
2004
2003
2002
2001
2000