Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87595 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22155 invoked from network); 4 Aug 2015 08:27:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Aug 2015 08:27:01 -0000 Authentication-Results: pb1.pair.com header.from=peter.e.lind@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=peter.e.lind@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.180 as permitted sender) X-PHP-List-Original-Sender: peter.e.lind@gmail.com X-Host-Fingerprint: 209.85.212.180 mail-wi0-f180.google.com Received: from [209.85.212.180] ([209.85.212.180:38083] helo=mail-wi0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 30/D0-17227-45770C55 for ; Tue, 04 Aug 2015 04:27:01 -0400 Received: by wibxm9 with SMTP id xm9so12976396wib.1 for ; Tue, 04 Aug 2015 01:26:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=3w8s2TJFD0kWvrLl/UNpTlVqV9GCPXV+7l05+YIFxQ0=; b=TECD9ByOl6lkuai7Roe2KGVJRvCwprnSvdMLEMRkGXWrNxu0zu0aP2RidpGu4HyobH z+zEgpx2IJdHSetkVTTTw9IqYNKoP73HiME+JDb2DSVWfq9XcRTFMclszUTSy2S1HXmz HsvSgDpQFN9goEClA0EzdiPbxAosK3bPDzbtbHB150sGJQHhAPkHi1qBHMluRfQY5fIY CicS8BcKHjxpZZ6U2Tu0nGQPKjUV+eZzVYWiQb4aaAsRnzOnoUHNG23djhNn+FnrpWrP AlVg1F6m+DcWI8yLQCO4FkSoE9MsWsGUt8Wp5m2mbYqeOHRy2/mRUgh09nmN2R4Bje2+ HfrQ== X-Received: by 10.194.11.7 with SMTP id m7mr5562279wjb.56.1438676816761; Tue, 04 Aug 2015 01:26:56 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.229.18 with HTTP; Tue, 4 Aug 2015 01:26:37 -0700 (PDT) In-Reply-To: <9996b5784a1bfbca80b07de01f1a7a94@k-piste.dy.fi> References: <9996b5784a1bfbca80b07de01f1a7a94@k-piste.dy.fi> Date: Tue, 4 Aug 2015 10:26:37 +0200 Message-ID: To: =?UTF-8?Q?Lauri_Kentt=C3=A4?= Cc: PHP Internals , Scott Arciszewski Content-Type: multipart/alternative; boundary=047d7b5d259a9c19a4051c780c15 Subject: Re: [PHP-DEV] PHP 7.1 Cryptography Projects From: peter.e.lind@gmail.com (Peter Lind) --047d7b5d259a9c19a4051c780c15 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 4 August 2015 at 10:13, Lauri Kentt=C3=A4 wrote= : > On 2015-08-03 23:54, Scott Arciszewski wrote: > >> $AES =3D new \PCO\Symmetric('openssl:cipher=3DAES-128'); >> > > It would be great if you could just ask for cipher=3DAES-128 without > explicitly specifying the provider (openssl). > > Even better would be splitting arguments up. There's not much point to multi-valued arguments, they're just harder to parse/memorize. If you need a common constructor, use a configuration object instead of a made-up string format. Apart from that, thumbs up on this! --=20 WWW: plphp.dk / plind.dk CV: careers.stackoverflow.com/peterlind LinkedIn: plind Twitter: kafe15 --047d7b5d259a9c19a4051c780c15--