Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86351 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86773 invoked from network); 22 May 2015 17:52:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 May 2015 17:52:08 -0000 Authentication-Results: pb1.pair.com smtp.mail=markus@fischer.name; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=markus@fischer.name; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fischer.name from 62.179.121.37 cause and error) X-PHP-List-Original-Sender: markus@fischer.name X-Host-Fingerprint: 62.179.121.37 fep17.mx.upcmail.net Solaris 10 (beta) Received: from [62.179.121.37] ([62.179.121.37:43257] helo=fep17.mx.upcmail.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 72/70-17389-4CC6F555 for ; Fri, 22 May 2015 13:52:05 -0400 Received: from edge02.upcmail.net ([192.168.13.237]) by viefep16-int.chello.at (InterMail vM.8.01.05.13 201-2260-151-135-20130320) with ESMTP id <20150522175116.UYWY29780.viefep16-int.chello.at@edge02.upcmail.net> for ; Fri, 22 May 2015 19:51:16 +0200 Received: from mail02.home ([213.47.1.174]) by edge02.upcmail.net with edge id X5rH1q0183lFLNl015rHAb; Fri, 22 May 2015 19:51:18 +0200 X-SourceIP: 213.47.1.174 Received: from rage.home ([192.168.1.52]) by mail02.home with esmtp (Exim 4.72) (envelope-from ) id 1Yvr6K-0002IT-RV for internals@lists.php.net; Fri, 22 May 2015 19:51:17 +0200 Message-ID: <555F6C8D.7030904@fischer.name> Date: Fri, 22 May 2015 19:51:09 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-Spam_report: Spam detection software, running on the system "scanner01.home", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On 21.05.2015 03:15, Scott Arciszewski wrote: > I've just opened an RFC for precisely this purpose: > https://wiki.php.net/rfc/libsodium From https://github.com/jedisct1/libsodium-php : // Binary to hexadecimal $hex = Sodium::sodium_bin2hex($bin); [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Subject: Re: [PHP-DEV] [RFC] [PHP 7.1] libsodium From: markus@fischer.name (Markus Fischer) On 21.05.2015 03:15, Scott Arciszewski wrote: > I've just opened an RFC for precisely this purpose: > https://wiki.php.net/rfc/libsodium From https://github.com/jedisct1/libsodium-php : // Binary to hexadecimal $hex = Sodium::sodium_bin2hex($bin); // Hexadecimal to binary $bin = Sodium::sodium_hex2bin($hex); // Hexadecimal to binary, ignoring a set of characters $bin = Sodium::sodium_hex2bin($hex, $string_of_characters_to_ignore); What's the reason for this redundancy (Sodium::sodium_*) ? thanks, - Markus