On Tue, Jun 19, 2012 at 6:23 AM, Tjerk Meesters <tjerk.meest...@gmail.com> wrote: > On 19 Jun, 2012, at 2:24 PM, Adam Jon Richardson <adamj...@gmail.com> 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 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php