Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68397 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 61725 invoked from network); 7 Aug 2013 11:00:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Aug 2013 11:00:12 -0000 Authentication-Results: pb1.pair.com smtp.mail=leight@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=leight@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.47 as permitted sender) X-PHP-List-Original-Sender: leight@gmail.com X-Host-Fingerprint: 74.125.82.47 mail-wg0-f47.google.com Received: from [74.125.82.47] ([74.125.82.47:41609] helo=mail-wg0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 66/D6-06453-6B822025 for ; Wed, 07 Aug 2013 07:00:09 -0400 Received: by mail-wg0-f47.google.com with SMTP id j13so1389880wgh.14 for ; Wed, 07 Aug 2013 04:00:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ydvb6VFZcCuYNrcIHX+2XtlRMMMhBmTCyUFUZKWZ3Yc=; b=d+czRibRFSEHGn4Et2zGWvdoCMLcngKouBp00fx0SxRJ4pIYv9mSLSufJXzhVlNSQL fh69I7JkKKUQKirYPrBb0YmIB3SvwOwekqvfMbPPFY8pCfK60/RGunj7UXixw4hx5FYq ScWXo4RSEsSnGGYkFNum67uomXU1Ap9RtjzpUSC4zwWTy9a726yTiDp2F6+DOK25A3U7 9ElqU1PU2vGxmVrI7mIqPsKHloUdVHY4m2G8SoeF+v6vKUK1EmcywH91jhvFpccDelMN bUKH6Ruz3uLU5OtLPKP/0pKBpa/+HkrMffWuAL0AWow92c/wreIdm6WkPoEjeCJO1jFF J/YQ== MIME-Version: 1.0 X-Received: by 10.180.198.79 with SMTP id ja15mr1781056wic.36.1375873200429; Wed, 07 Aug 2013 04:00:00 -0700 (PDT) Received: by 10.216.182.193 with HTTP; Wed, 7 Aug 2013 04:00:00 -0700 (PDT) In-Reply-To: References: Date: Wed, 7 Aug 2013 12:00:00 +0100 Message-ID: To: Yasuo Ohgaki Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=047d7b6242525e1e5a04e35971a2 Subject: Re: [PHP-DEV] crypt() should raise error without 2nd parameter From: leight@gmail.com (Leigh) --047d7b6242525e1e5a04e35971a2 Content-Type: text/plain; charset=ISO-8859-1 On 7 August 2013 11:18, Yasuo Ohgaki wrote: > A user requested that crypt() should raise error without 2nd(slat) > parameter. > > https://bugs.php.net/bug.php?id=55036 > > crypt() without salt generates extremely weak password hash. > The docs seem to indicate that some implementations generate their own random salt if one is not supplied? It doesn't seem right to raise a warning if it doesn't apply to _all_ cases. --047d7b6242525e1e5a04e35971a2--