Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87600 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40062 invoked from network); 4 Aug 2015 11:56:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Aug 2015 11:56:35 -0000 Authentication-Results: pb1.pair.com header.from=scott@paragonie.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=scott@paragonie.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain paragonie.com from 209.85.192.46 cause and error) X-PHP-List-Original-Sender: scott@paragonie.com X-Host-Fingerprint: 209.85.192.46 mail-qg0-f46.google.com Received: from [209.85.192.46] ([209.85.192.46:34149] helo=mail-qg0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3C/72-24673-278A0C55 for ; Tue, 04 Aug 2015 07:56:34 -0400 Received: by qgeu79 with SMTP id u79so4120421qge.1 for ; Tue, 04 Aug 2015 04:56:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=HCwkk1jc36sqwfJUx8GY/yNSeJLsuGQ93Mr6XSOrvkc=; b=bddJIDtNiyYsXty2/wsJcnocu/8OBnQ02M6YE/O3gFTEa0yGpi55B9PXyAc3fHxFR5 RfmsAi4OJAAOh4lWo+y+xP0iqtevyqaM6BKP99ncUpv7RnllvY1mKwiHyVU6Id20X+rr xiu7j0zH3K3u27FGgRmU42nr2Jn0JMltH0V+r3X16k55BUHkGv/bs9bZ/IP0P+lMF5D9 6Ziarmqgd7D9Ish07dUEzkYBxOfRlehdGuDC8DqVoK2QSU1Pk1P7bgpXlHXh4EXr8X4Z drwuCkCsZC12ObdIiXt7wtV2pxeSWK5YOBFy4rpFTn09nhoY1F/eHmOfkvzCn1U24oGr w9Dg== X-Gm-Message-State: ALoCoQmts2FN5VmHtO8DV2212k/OUenbvX532SJ6YGowoGPN1I4W6xwsenARoD7KRnbnvj5ymxKq MIME-Version: 1.0 X-Received: by 10.140.201.66 with SMTP id w63mr6633286qha.36.1438689392104; Tue, 04 Aug 2015 04:56:32 -0700 (PDT) Received: by 10.96.83.102 with HTTP; Tue, 4 Aug 2015 04:56:32 -0700 (PDT) In-Reply-To: References: <9996b5784a1bfbca80b07de01f1a7a94@k-piste.dy.fi> Date: Tue, 4 Aug 2015 07:56:32 -0400 Message-ID: To: Peter Lind Cc: PHP Internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] PHP 7.1 Cryptography Projects From: scott@paragonie.com (Scott Arciszewski) On Tue, Aug 4, 2015 at 4:26 AM, Peter Lind wrote: > On 4 August 2015 at 10:13, Lauri Kentt=C3=A4 wro= te: >> >> 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! > > > -- > > WWW: plphp.dk / plind.dk > CV: careers.stackoverflow.com/peterlind > LinkedIn: plind > Twitter: kafe15 > Hi Peter, It's not really a "made-up string format", in the sense that it has a precedent (PDO). Hopefully my response to Lauri makes this design decision seem more reasona= ble. Regards, Scott Arciszewski Chief Development Officer Paragon Initiative Enterprises