From 84a93a81dad8e822dff2de16927011f2b8711e19 Mon Sep 17 00:00:00 2001 From: Hannes Papenberg Date: Thu, 12 Nov 2026 23:15:56 +0100 Subject: [PATCH] Remove the unused sodium_compat import and the PECL libsodium reference Cipher\Sodium imported ParagonIE\Sodium\Compat but calls the sodium_* functions directly. The composer suggestion still mentioned ext/libsodium, the PECL extension that was only needed before PHP 7.2. Co-Authored-By: Claude Opus 5.5 --- composer.json | 2 +- src/Cipher/Sodium.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 2ce32ab3..0dfba4e1 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ "ext-openssl": "To use the OpenSSL cipher", "ext-sodium": "To use the Sodium cipher", "defuse/php-encryption": "To use Crypto cipher", - "paragonie/sodium_compat": "To use Sodium cipher if neither ext/sodium or ext/libsodium are available" + "paragonie/sodium_compat": "To use Sodium cipher if ext-sodium is not available" }, "autoload": { "psr-4": { diff --git a/src/Cipher/Sodium.php b/src/Cipher/Sodium.php index bae797f0..bd66185a 100644 --- a/src/Cipher/Sodium.php +++ b/src/Cipher/Sodium.php @@ -16,7 +16,6 @@ use Joomla\Crypt\Exception\InvalidKeyTypeException; use Joomla\Crypt\Exception\UnsupportedCipherException; use Joomla\Crypt\Key; -use ParagonIE\Sodium\Compat; /** * Cipher for sodium algorithm encryption, decryption and key generation.