Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125530 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id F3B141A00BD for ; Fri, 13 Sep 2024 10:34:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1726223766; bh=mvADagd3JSq0Fc/dinB6671eoyNLSCilIm7NmwT4+bM=; h=Date:Subject:To:References:From:In-Reply-To:From; b=jdLPR6K0egk8BjBVmTGB6tX3UHX9Eeh2bIQhVapKPrKQ5ECuiF5XwsyIF+PDKFf/q dtDtJwVoAp8SpOKh7Pv/APCmlH2+cX252Y4ddS480nepDQ7CgkHUUsB5BWQM4NN1F1 OAoN8TIjGjkvr1vPIQ/Cyd5Cuyh75bd1HnCPMfNk9+Z7Z3g7JNLxCjEYbvA9S+u7U0 zCXCRecBF7tVsTNtNoFftk43kP94d9TcUMCTJKh5lqZeQNHnMvREmcrvuQ8z+WQaHg ASdyB4EjC9wX1QzW7QUhhfLRw56cUSn5DxyFhPVPNUpuKNxscNfbpnt8Pqop/aB2Zo KsSkCkpsUZNkQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id EC813180053 for ; Fri, 13 Sep 2024 10:36:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 13 Sep 2024 10:36:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1726223639; x=1726828439; i=cmbecker69@gmx.de; bh=MLe2RAc+Upr6FzZGg/DzuCN41mrAgF4tzVTCnUmWMu4=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:Subject:To: References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=i/vrE4U3CFq9WeE/okBSUg+Ivo8h26fjOe/I3XRCCynMA1eN3saLHy493Yw/vTWK F3ibmMqyorMXsPpL0uu5nCl96tFEdGDbX17OrlZINrr+WFQBWEzLp5P8nJQuQTTO3 wmpOrbHtKjcMpKNu8fqXj6ZWaWWOrGvoyVUvQF4y+Y/oGswQ8etwoIrAZIse0tRLl hpQUdiCyOuTjohj0MUKw8wgl/2d8nrZmGoUKxDCDJO7TPsVf5f2GqWJCCtGOblFr2 wKj5lwOBhX067suQ5Q4qBoe8brU1/gO9Vqa4Dhoy2qr79e7dESxcx2ITUP/5Jhx5Z aNXAKQ/roa2XlHPOyQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.2.130] ([79.251.205.37]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MfHAH-1sNPm02t3L-00nBbf; Fri, 13 Sep 2024 12:33:59 +0200 Message-ID: <8bd146fd-cbe3-41ed-b51d-72c254196fea@gmx.de> Date: Fri, 13 Sep 2024 12:33:59 +0200 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PHP-DEV] For discussion (no RFC for now) - more libcrypt bindings To: Remi Collet , internals@lists.php.net References: <1560103a-e2b0-46b2-9089-81bcfb715352@FamilleCollet.com> <96a1c3be-37fc-44e2-a1ca-9cc4907f599d@FamilleCollet.com> Content-Language: de-DE In-Reply-To: <96a1c3be-37fc-44e2-a1ca-9cc4907f599d@FamilleCollet.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:760ofK08ThQ7o1cSTsPi1HaxZ/3T96c9HW5U/toNUlfIuijnzTM Wd/kjUDCzFt2LHW5QSAj5/YRAHrZBcntmKjK8KVVoRyhCTSFcaqQvbZEoJqGpukikvolNh3 K6cV+wU9MBqNVNuP1gd8Rrm3/+FezJKlkpG81JtJ0+6T5ITg9Yyd9CJOXBHYT4wve3BeloM b3BAwmymeCD+o1+UfUMTw== UI-OutboundReport: notjunk:1;M01:P0:8m73okxjfOg=;1UdCf2dFws+YF85oWsIpRYDiICy fO5XEe459bxY6bOqZNbBcbRQG5bFZ9lLE4TPJWFF9pwfgfGLekHFqf6wW7qmZy9lpp/jt+Ci9 DFohckpC3Ke9PxBJG5V61dqBK2vu+p10BP6nGOjcTt9Rqn2ASvBEOMPkPuzCLT5clz6usEwQ6 ygcaUhxnGjnzsy41w0iVljegjEDPBbDMzMnxb+Blu1G53A7kc4VpDdnBlEIzHbhIUqnjQWQZ9 TCGVJJ8YEXxqP4lxzjTotMCyciSLxxRyTLyIVtLyLpQzwnDiEfnu+XzmH8eu/3iFTToTaYnvo kL4mn75bH2Apy21CiOV5MC4d2eNhKJ/XDTOpjUapXsr4g/8XoS0Q/qrilFhJXHwS+ZMoK8EXM 2SReIYOPVbUY9B9UXsbh0naR7AOfFG61mG7sKQbIVV+KOZH7fS1Oy6rEeiKaEwBTvm6o6tAYJ EMVeGhwznAnKASKJAOxhtBfC93tzMawTc4DfNUn3/lJrpE8/gpYzFLuxebrLq2rchRwtd2RLa ZLpBxftxd+P8ydPPP2yS1Tq075mkYofUp1mslcDqBYiUQ1fk/hdgn5CoNa87w1o3FWWnlzGEf FS/rMb41p1mOstjKBSGRkQJqnEnub+eY//ObPRJ7qpFEMkQaLcaz5Pp2IdWzEbOH8yUtO8Wte kLT45nFoj9vqfcZswp3WqhMe8sphj/KUzO4UnI0w22wo0r6LLDZ7pMlo6Aa//zh61isov/UqT 2ezRyhqnVRQzYsQ7oW7DAkiLsS8yvKDS7R09+RDSyYpFQqwMGwuqHf10XeXyIqzmAwH6HPhpj HKQFng4ahJiXW1+KojgTKVKw== From: cmbecker69@gmx.de ("Christoph M. Becker") On 13.09.2024 at 10:09, Remi Collet wrote: > For now, these are provided in the xpass extension. > Main issue is Windows. > > =3D> https://pecl.php.net/package/xpass Yeah, it might be an issue to port this library to Windows. There is a vcpkg port[1], but only for Linux. I haven't had a closer look why; maybe it's just because libxcrypt uses autotools, maybe it's because they're using functionality not readily available on Windows. However, Windows support might not be that important anyway, because we're unlikely to ship the official builds with that library, since at least so far the stance was, that users should be able to run a minimal PHP build (core + mandatory extensions) without any external dependencies. Cf. ext/pcre, where Windows always uses the bundled libpcre2 (and there is still no (official) separate build of libpcre2). Anyhow, I had a glimpse at our own bundled crypt implementation, and it seems we have implementations of a couple of hashing algos there (e.g. crypt_sha256.c), what might not be the best idea given we also have implementations in ext/hash. We should consider to unify that (PHP next). [1] Christoph