Skip to content

Comments

fix: vol-6097 - replace deprecated laminas-crypt with PHP Sodium#153

Open
Ahmed7752 wants to merge 4 commits intomainfrom
VOL-6097
Open

fix: vol-6097 - replace deprecated laminas-crypt with PHP Sodium#153
Ahmed7752 wants to merge 4 commits intomainfrom
VOL-6097

Conversation

@Ahmed7752
Copy link
Contributor

@Ahmed7752 Ahmed7752 commented Oct 13, 2025

Description

This spike investigates and implements a replacement for the deprecated laminas-crypt package.
After reviewing available options, we migrated to Libsodium for symmetric encryption, using PHP’s built-in sodium extension (PHP supported through 8.2 +).

  • Replaced Laminas\Crypt\BlockCipher usage with a new SodiumEncryptor implementing EncryptorInterface
  • Added CacheEncryptionFactory and updated cache encryption service to use SodiumEncryptor
  • Updated unit tests for:
  • SodiumEncryptor
  • CacheEncryption
  • CacheEncryptionFactory
  • Added developer documentation on vol-app repo

Related issue: VOL-6097

Before submitting (or marking as "ready for review")

  • Does the pull request title follow the conventional commit specification?
  • Have you performed a self-review of the code
  • Have you have added tests that prove the fix or feature is effective and working
  • Did you make sure to update any documentation relating to this change?

@Ahmed7752 Ahmed7752 requested a review from fibble as a code owner October 13, 2025 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant