Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83705 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69615 invoked from network); 24 Feb 2015 22:09:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Feb 2015 22:09:22 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.49 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.192.49 mail-qg0-f49.google.com Received: from [209.85.192.49] ([209.85.192.49:55925] helo=mail-qg0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9C/58-24698-C86FCE45 for ; Tue, 24 Feb 2015 17:09:21 -0500 Received: by mail-qg0-f49.google.com with SMTP id q107so32600474qgd.8 for ; Tue, 24 Feb 2015 14:09:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=jnm3GoboaFH4DZuahWGvAwCP0AvKMPVFCXgQkrkdOls=; b=nWY7in4C+TfNfsSiaLjZADFLKBreMvjoRblC1n7QnEchvd/X3iUThUUFM4Fhg3OAwQ amayTw1PX1qFAaEnOT1I9UssnYCbqRN3q871xhtI1hbksZ5KCDqq56UkAZ5YIrAX55mO iAH5HogfUci9NT2v6nLGOyxXco3zMrjhUE8ZDYTZYIRnoirMg4gZmatq2fwocG7XUU5a R+nb+MLLKmmIXZO32Gop06aoWZmZ4nE94YA2hJGHSHQSngqWQRj/YoIjh3np5WmsJOEv AdGykGk1PUlfQs66CWlyTn+6PmXtbKSNgphQjMMWFe/3Dqs7AMdzdiyJj9Ha2F2Q0fIU KdWw== X-Received: by 10.140.152.2 with SMTP id 2mr373397qhy.16.1424815754736; Tue, 24 Feb 2015 14:09:14 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.229.198.8 with HTTP; Tue, 24 Feb 2015 14:08:30 -0800 (PST) In-Reply-To: References: Date: Wed, 25 Feb 2015 07:08:30 +0900 X-Google-Sender-Auth: IKtFBJJtHirCw6mJG9Diridj_48 Message-ID: To: Anthony Ferrara Cc: =?UTF-8?Q?P=C3=A1draic_Brady?= , Pierre Joye , Leigh , Sammy Kaye Powers , PHP internals Content-Type: multipart/alternative; boundary=001a1135a3dcee7b1b050fdcc401 Subject: Re: [PHP-DEV] [RFC] [DISCUSSION] Reliable user-land CSPRNG From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a1135a3dcee7b1b050fdcc401 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi all, On Wed, Feb 25, 2015 at 6:33 AM, Anthony Ferrara wrote: > On Tue, Feb 24, 2015 at 4:17 PM, P=C3=A1draic Brady > wrote: > > Hi > > > > On 24 February 2015 at 20:04, Anthony Ferrara > wrote: > >> If random_bytes() is harder than uniqid(), it's a non-starter. > > > > Technically, it will be harder than uniqid() if producing strictly > > random bytes (if output needs to be printable/readable). > > That's not a "bad" thing obviously! > > Sure. But does that indicate the need for a "random_string()" function? > > I don't know... Random bytes is better. People would use it for IV or like with the size of IV. If we use string, users loose effective bits. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a1135a3dcee7b1b050fdcc401--