Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61185 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34826 invoked from network); 12 Jul 2012 17:57:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Jul 2012 17:57:09 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.170 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.161.170 mail-gg0-f170.google.com Received: from [209.85.161.170] ([209.85.161.170:59487] helo=mail-gg0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E4/F4-11045-3FF0FFF4 for ; Thu, 12 Jul 2012 13:57:08 -0400 Received: by ggnf2 with SMTP id f2so3202456ggn.29 for ; Thu, 12 Jul 2012 10:57:04 -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=FySCSeOi/aEzGeRdhIZ6fOtR7bw4426eN1s7ypEGoHk=; b=auLpTuT32/ypYbjC1vNVkCifBmsAFSVZng+VjieUW2TWNB1AGeg+mvDBKeQak/TC82 EdLicqJzZyToK6UPhLwpq3JJfGFwHvfEPgYX4b+VJ2V3uWRHfFQHT8j/t8lRIvKmvll6 wbfWZc0zo6eShJzeitdsdqAOeXeoxzL57F9Jvtah5fsTxAGdDaAPRtg3OiiJpJ9jEvxy Vb1f6St8MvOBuCyXkSyZozCi3D7/Jqcr2SK4HZRRfYos+0GjsEdWDw7hDwNmmvKwPCGE FwO0DN62nN8pCLNnD5HDRlZCsgffJnJWyrw8a4oV3iCXjJkRmbNzTHFWGl9QC5DmJygO CKMw== MIME-Version: 1.0 Received: by 10.100.238.17 with SMTP id l17mr10577494anh.62.1342115824560; Thu, 12 Jul 2012 10:57:04 -0700 (PDT) Received: by 10.147.113.7 with HTTP; Thu, 12 Jul 2012 10:57:04 -0700 (PDT) In-Reply-To: References: Date: Thu, 12 Jul 2012 19:57:04 +0200 Message-ID: To: Anthony Ferrara Cc: Richard Lynch , internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] [DRAFT RFC] Adding Simplified Password Hashing API From: pierre.php@gmail.com (Pierre Joye) hi Anthony! On Mon, Jul 9, 2012 at 5:19 PM, Anthony Ferrara wrote: > I've added a pair of new functions to the RFC and implementation: > > password_needs_rehash($hash, $algo, array $options = array()) Not totally convinced about that one. I would prefer a password_rehash instead, then a simple comparison is needed to know if an update is necessary or not. > password_get_info($hash) Soungs good, to get all the details about the given hash. Cheers, -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org