Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68619 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19045 invoked from network); 24 Aug 2013 10:31:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Aug 2013 10:31:01 -0000 Authentication-Results: pb1.pair.com smtp.mail=lars@strojny.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=lars@strojny.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain strojny.net from 46.4.40.248 cause and error) X-PHP-List-Original-Sender: lars@strojny.net X-Host-Fingerprint: 46.4.40.248 milch.schokokeks.org Received: from [46.4.40.248] ([46.4.40.248:47440] helo=milch.schokokeks.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 38/71-05399-36B88125 for ; Sat, 24 Aug 2013 06:31:00 -0400 Received: from [192.168.178.32] (ppp-188-174-60-21.dynamic.mnet-online.de [::ffff:188.174.60.21]) (AUTH: PLAIN lars@schokokeks.org, TLS: TLSv1/SSLv3,128bits,AES128-SHA) by milch.schokokeks.org with ESMTPSA; Sat, 24 Aug 2013 12:30:54 +0200 id 0000000000000026.0000000052188B5E.00002628 Content-Type: multipart/signed; boundary="Apple-Mail=_A0C50572-80B3-4E56-B735-DCCCDCC46D3E"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) In-Reply-To: Date: Sat, 24 Aug 2013 12:30:53 +0200 Cc: Yasuo Ohgaki , David Muir , Leigh , Sebastian Krebs , "internals@lists.php.net" Message-ID: <9E0E57EB-AF31-4AA2-BF83-8CEE43877D9F@strojny.net> References: <9FD8BA4C-8B23-497B-8471-04F95E0C1935@strojny.net> To: Nikita Popov X-Mailer: Apple Mail (2.1508) Subject: Re: [PHP-DEV] Request #65501 uniqid(): More entropy parameter should be true by default From: lars@strojny.net (Lars Strojny) --Apple-Mail=_A0C50572-80B3-4E56-B735-DCCCDCC46D3E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 Hi Nikita, Am 24.08.2013 um 12:08 schrieb Nikita Popov : [....] > We already have a great (version 4) UUID implementation called > mcrypt_create_iv, just minus the fixed sequences and fancy formatting. > Apart from moving this to core (not requiring mcrypt/openssl) and = maybe > adding alphabet support, I don't immediately see why this wouldn't be > sufficient. Why do we need fancy UUID formatting or "unique hashes" > (whatever that is supposed to be...)? mcrypt_create_iv() is great but it is about usability: not every user of = the language can create a UUIDs from mcrypt_create_iv() and we should = make it as easy as possible to generate unique IDs. That said, a simple = uuid($version) function would not hurt the core. I would argue that this = is very similar to the password_hash() API. It was possible before the = password API to store password securely, but we made it way easier now, = which is a very good thing. cu, Lars --Apple-Mail=_A0C50572-80B3-4E56-B735-DCCCDCC46D3E Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iQIVAwUBUhiLXSQPF+sCY6wHAQJD+hAAovP9W4JlxkUtMHJ4Pphj/fwUNhjz6JBr J6a/QjYzv4KyBAospSJhpoTbPLjJHLqRgFr0Ecqm303Sf+ay6EFVX6XnyFMbLm7Q 01E3A7op/RdVtgQKW+xWBztbrURT2G4xjyK1B59aa3O09ZEQyz9ep5USTxFL9AKp 3l8nBEkhWD83DbJgTIxKnm4hzt2mlRa9q7xrMqOvVIMyKkrlWwIax6t/OQWHfTAw 0hHZWtyUqqfB2KW08nvxMVxJYyUU3I41R3Yn+NNq18WI/TwKYgvgWy2TtCh9yd18 TDrdGlnjHUwu+SZs9c2EZPeWIyvGBk8uCF6qaQa+EzZGu/Od1LgZx/Ya1ZGPNoRh int6oNn6Zy8HwxLtwFRKqQPpVIKYVLM04hwclTQJ1+/sQqq8Art9l7U+oNtEUNHP B8oW686nyZaJqFO1nxnEZCEamq3gWVSF3I3H8wwQKkroc3yiDu6GLdG5IVOZPX68 6mXx3wgP/pvEJIaiNMY7Lor0P7s2LtroQmxQJzW4U4Iz9nXT7xlqo8x00XIV6M40 F+HQquaKD27Pw4DmCw6DD35OJ+aaPVfZrPdasM2f0UvyNwdAh23NvlJLRiw7Jz++ pSPC1wcdLpf3uAV4AdSXwN98oxqx6yBl/wdXeFUu1xIY8LPxQ3h4iEwHq3OWNvpC VY9xDIaKdEA= =Z8Wk -----END PGP SIGNATURE----- --Apple-Mail=_A0C50572-80B3-4E56-B735-DCCCDCC46D3E--