Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80107 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6950 invoked from network); 2 Jan 2015 21:03:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Jan 2015 21:03:01 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.52 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.216.52 mail-qa0-f52.google.com Received: from [209.85.216.52] ([209.85.216.52:53041] helo=mail-qa0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E5/10-04824-38707A45 for ; Fri, 02 Jan 2015 16:03:00 -0500 Received: by mail-qa0-f52.google.com with SMTP id v10so9704862qac.39 for ; Fri, 02 Jan 2015 13:02:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=yBYxrBwjPEFn6nAtTHgsHsPG2NSO+TGEkqjfpruiUFM=; b=Tv5ME94ro0faegA+aaR3jS4tvMm0A5Y/Ea7kyHuPI2YvDOVzaNISsXfmYBWC+6aO9a tYD9ekrkYpVGKG6O4drbi7kGQk6jaJyImyyAe5g0xXAoqr3UrXFBSUOTb3Mpfy7m/nFS QrES4lFxIaj8ecsYwm0ay2WnDOlsI0EmJvefPyv2RNYJO0LgvmKsy89s1uqeliiv2/pc tvrQdao9uy5GcgKRmuoHkY9DyQex358NS7a/pvAGi8zgH13Z9kt0lpruAYWlR8aCm0Vd Wk4JA92fx69L/VI6GtJpJunlNtL81weugiAONJ/Ej9l0vY/80DeUFSWYCtgTI+biBjln ZRjw== MIME-Version: 1.0 X-Received: by 10.224.54.2 with SMTP id o2mr126798421qag.63.1420232577016; Fri, 02 Jan 2015 13:02:57 -0800 (PST) Received: by 10.140.22.106 with HTTP; Fri, 2 Jan 2015 13:02:56 -0800 (PST) In-Reply-To: References: Date: Fri, 2 Jan 2015 13:02:56 -0800 Message-ID: To: Scott Arciszewski Cc: "inter >> PHP internals" , pureftpd@pureftpd.org Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] libsodium for PHP 7? From: pierre.php@gmail.com (Pierre Joye) hi, On Fri, Jan 2, 2015 at 9:05 AM, Scott Arciszewski wrote: > Hi PHP Internals, > > Right now, the libsodium PECL package is in the beta channel. Would it be > possible to include libsodium as a core extension in PHP 7? If so, what > hurdles would need to be cleared before that happens? > > http://doc.libsodium.org/ > http://pecl.php.net/package/libsodium > https://github.com/jedisct1/libsodium-php It is possible, however I am not a big fan of its APIs. Mapping one to one the library APIs may sound nice but it is actually not a good thing in this case in my humble opinion. Many functions do not make sense to expose directly or not using the same methods. That being said, I like libsodium, used it in a couple of projects (not php related) :) Cheers, -- Pierre @pierrejoye | http://www.libgd.org