From 2ab238d54249dfd74535ddbbcf55913ae0de19cf Mon Sep 17 00:00:00 2001 From: Soatok Dreamseeker Date: Wed, 27 Mar 2019 23:55:38 -0400 Subject: [PATCH] After PHP 7.1 support is dropped, use Ed25519 The example strings were created with this keypair * Secret key: `7994a18843df8a750f2bbe2ad2c4b04b2c0eda6b7f766648d5316c0e272a5c6c8e2e93807649253619106b49110d9b051847f1f82c476aef704393b207c2a5ae` * Public key: `8e2e93807649253619106b49110d9b051847f1f82c476aef704393b207c2a5ae` --- views/download.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/download.html.twig b/views/download.html.twig index 436bde5c..4416f883 100644 --- a/views/download.html.twig +++ b/views/download.html.twig @@ -13,7 +13,7 @@

To quickly install Composer in the current directory, run the following script in your terminal. To automate the installation, use the guide on installing Composer programmatically.

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
-php -r "if (hash_file('sha384', 'composer-setup.php') === '48e3236262b34d30969dca3c37281b3b4bbe3221bda826ac6a9a62d6444cdb0dcd0615698a5cbe587c3f0fe57a54d8f5') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
+php -r "if (sodium_sodium_crypto_sign_verify_detached(sodium_hex2bin('84b179c56ebfd3d21b5149d9877ff09642dccff0c8be3963ee50ef8931a36ba46bd35cf2efe75c8118255702a6cdb83546fe6a1d698e8d0950ed232403e3580f'), hash_file('sha384', 'composer-setup.php'), sodium_hex2bin('8e2e93807649253619106b49110d9b051847f1f82c476aef704393b207c2a5ae')) { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
 php composer-setup.php
 php -r "unlink('composer-setup.php');"