Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123835 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 07D141ADAAD for ; Tue, 25 Jun 2024 18:08:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1719338976; bh=xhsxu7CbYDqv3T6ROkuzR21wxGo9QEDKgXZKZk7M7nM=; h=Date:Subject:To:References:From:In-Reply-To:From; b=YBwYeYB5LhcThuutL3CPPqEtHEtDdSfhbkpdOdvUS0g2bZZucm4oeX3rmF2ACLWh/ sqIsmzx7lV9L/PtXs4GYoulJDfoLHfisxEMdy3rZYskjKeXUzQyRkFfu0DO/Ru9Jys HeeUvY8D1BdzEdXRHY5A7Y8pjQ4KMjpub2Ex5wdfW2NyhLKZGDSbO4XVRddMl1p77z sWskz/hSo9Evosrx2N09zAacE4TTK1lTi6V/dv90kYpY26biCCdkGLtrJATbRE0y6c h0hCglCLHRgYeWroiYqbFK+eh10tQWm2cSsigGJBXRWNggduFAwQe642URx6ZxFs0x shL0yBShQqd1w== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 470AA180BE9 for ; Tue, 25 Jun 2024 18:09:35 +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.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 25 Jun 2024 18:09:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1719338894; bh=Qg5FXiGxBLTg4TFXNwlyTskJdR7ooDyhA+TapxoavEU=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type:from:to:cc:subject:message-id; b=Wc8dq0iU/01z4st29XO/qh8dBAI6HNTYEX7AtovzVk9YaPE97N2B2S6gScaI1NXiM buSgStipj51nl15ieKWEzldhcD4UgJD8rgqp6xImirmFmEJLjDwEpcGvQNwQdCxn4S 5GQeGea6Q9AX9ATU9HF0nJkCFmT3H1grN1Z95HpyDuwWwFQF3qYHxMXCQM+SDFTXi6 d9h5FR9WVQvN087/h5uD/hEvFa6G+Y2/2RsfbByEEE3fl8dokKwz7Jnk+JseO7t5mJ xPbdoI2UQbrrInbqFOQszvdNrYA3hss78GDCm+FoFGdfcip/NQtzxo4TVq8xwxrSAo N6pKIfaDpSk9g== Message-ID: Date: Tue, 25 Jun 2024 20:08:13 +0200 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 Subject: Re: [PHP-DEV] [RFC] Deprecations for PHP 8.4 To: Rob Landers , internals@lists.php.net References: <04a480f9-bc8c-4ccc-814d-37316d6e8353@app.fastmail.com> Content-Language: en-US In-Reply-To: <04a480f9-bc8c-4ccc-814d-37316d6e8353@app.fastmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=C3=BCsterhus?=) Hi On 6/25/24 17:39, Rob Landers wrote: > My only issue is md5, sha1, etc. There are many uses for them besides secure contexts. Sha1 is used by git, md5 fits snuggly in many data structures (uuidv5, for example, though some implementations also use the first 128 bits of a sha1). I believe you might have misunderstood the proposal. The RFC is not proposing the MD5 and SHA-1 *algorithms*. It's just proposing the standalone functions. The algorithms will still be available by means of the hash() function, which - besides MD5 and SHA-1 - provides access to a multitude of other hash algorithms. The RFC explicitly lists the necessary replacement. The RFC is just proposing phasing out the special treatment of having dedicated functions of MD5 and SHA-1. Best regards Tim Düsterhus PS: git is planning to move away from SHA-1.