Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60892 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73362 invoked from network); 19 Jun 2012 17:35:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jun 2012 17:35:24 -0000 Authentication-Results: pb1.pair.com header.from=adamjonr@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=adamjonr@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.170 as permitted sender) X-PHP-List-Original-Sender: adamjonr@gmail.com X-Host-Fingerprint: 209.85.214.170 mail-ob0-f170.google.com Received: from [209.85.214.170] ([209.85.214.170:61332] helo=mail-ob0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F7/26-34236-B58B0EF4 for ; Tue, 19 Jun 2012 13:35:24 -0400 Received: by obfk16 with SMTP id k16so2947031obf.29 for ; Tue, 19 Jun 2012 10:35:20 -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 :content-type; bh=8wMPbo+4oxYpXsNKqKsIkvlTSoIC9/aKi2SmKS2zF7w=; b=vd6kHG4bpzHu9w4IqlMjvK8RfaOM5bDZQOk2udAlOS9kiEQ8prFoQJSaOyl6XMTria ExSiyOrpnlZ6ijP0FFyzQtMMP3oRSII4csjgOuUiKvxckLiWVKqzxvCO/ojO9Gb8TrVK hT1V6JvAifWHX1gq3uMrQUSqX/DYC6t3HNkWf3u7vNKZrINRfla87J8Q7v86s4/SvN3o 5OgMJgGdLIiv7hphQEMDiEXpRRQNeojXX81r+bAc87iJ+wXNvUSKcJrNmbNr85UIMFc5 VvWGOpeInGTQsul+yspuBpv8gScSoQk9BU8dNAsCkH8sc4riay8zb6BKvtIVl1bwPrCu iFGQ== MIME-Version: 1.0 Received: by 10.182.228.6 with SMTP id se6mr20342616obc.29.1340127320504; Tue, 19 Jun 2012 10:35:20 -0700 (PDT) Received: by 10.182.181.36 with HTTP; Tue, 19 Jun 2012 10:35:20 -0700 (PDT) In-Reply-To: References: Date: Tue, 19 Jun 2012 13:35:20 -0400 Message-ID: To: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] [RFC] Add hash_pbkdf2 function From: adamjonr@gmail.com (Adam Jon Richardson) On Tue, Jun 19, 2012 at 6:23 AM, Tjerk Meesters wrote: > On 19 Jun, 2012, at 2:24 PM, Adam Jon Richardson wrote: >> >> One thing I'm wondering about is whether the last parameter could be >> changed from: >> raw_output = false >> >> To something like: >> output = "hex" (also allowing output = "raw", output = "base64") >> > > That wouldn't be consistent with the rest of the hash_ family though :) I agree that keeping the API consistent throughout the hashing family should be a priority. That said, this function signature is quite different from the other hash functions. Additionally, the practical value of this function relates specifically to password storage, and giving the developer easy, efficient access to more compact storage strings would likely prove helpful. Adam