Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:20173 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38119 invoked by uid 1010); 18 Nov 2005 20:55:55 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 38104 invoked from network); 18 Nov 2005 20:55:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Nov 2005 20:55:54 -0000 X-Host-Fingerprint: 64.233.184.196 wproxy.gmail.com Linux 2.4/2.6 Received: from ([64.233.184.196:13240] helo=wproxy.gmail.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 60/F7-07637-ADF3E734 for ; Fri, 18 Nov 2005 15:55:54 -0500 Received: by wproxy.gmail.com with SMTP id i31so40903wra for ; Fri, 18 Nov 2005 12:55:51 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=mZxF51ZBpjbWESFkhzo7xK62cAzubnlMwsQoXBFMlT8WC0CwZ6l1q3DwnKjTn1eYRW8hnjf330ejI18FTbLhV4kZBRo1pBnABhJnFeBVPtapq3+H1pwtQV8WSF+2/xFlS+OFnECn1nOOnNgijeqOz0xl/lHsXArzO9A6qI3iebA= Received: by 10.54.143.1 with SMTP id q1mr130630wrd; Fri, 18 Nov 2005 12:55:51 -0800 (PST) Received: by 10.54.77.19 with HTTP; Fri, 18 Nov 2005 12:55:51 -0800 (PST) Message-ID: <4e89b4260511181255i6b940087k2dd54b0f17a7d314@mail.gmail.com> Date: Fri, 18 Nov 2005 15:55:51 -0500 To: Roman Ivanov Cc: internals@lists.php.net In-Reply-To: <88.F5.07637.0393E734@pb1.pair.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <000701c5ec5f$33e2ff90$7d051fac@stumpy> <88.F5.07637.0393E734@pb1.pair.com> Subject: Re: [PHP-DEV] Re: sha256(), sha256_file(), and other hashing algos From: kingwez@gmail.com (Wez Furlong) Assuming that sha256 is always going to be the best default is pretty short-sighted. It's only a matter of time before that one is partially broken in some way too; we won't be able to change the default value of the function by then, because everyone using the default will have code that depends on sha256, and voila, we've gotten locked into something that might not be so desirable. Default values should be avoided unless they're *always* going to make sens= e. --Wez. On 11/18/05, Roman Ivanov wrote: > Sara Golemon wrote: > > string hash(string $algo, string $value[,$raw=3Dfalse]) > > string hash_file(string $algo, string $filename[,$raw=3Dfalse]) > > Hm... hash(string $value[, $algo=3D'sha256' [,$raw=3Dfalse]])? > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >