Feature request: Add sodium extension #34
Replies: 3 comments
-
|
Maybe you could look into this? |
Beta Was this translation helpful? Give feedback.
-
|
For anyone having similar issues you can use https://github.com/paragonie/sodium_compat as a polyfill. This comes with performance impacts (mostly on low-performance-devices) so I still think having the sodium extension bundled with the NativePHP binary would be helpful - this could be even more relevant for NativePHP Mobile. |
Beta Was this translation helpful? Give feedback.
-
|
Nevermind: It is not working correctly as the pure PHP implementation has major drawbacks: So having native sodium-support would be very useful... |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I think it would be helpful to have sodium included in the default binaries. As sodium is included in modern PHP why not include it in the NativePHP binaries (see https://www.php.net/manual/en/sodium.installation.php)?
I am working on an E2EE-enabled app with NativePHP desktop and I am running into issues when I am trying to generate key pairs:
[2025-10-25 16:47:12] local.ERROR: Call to undefined function sodium_crypto_sign_keypair() {"exception":"[object] (Error(code: 0): Call to undefined function sodium_crypto_sign_keypair() at C:\\Users\\nk\\programming\\my-app\\desktop\\app\\Livewire\\Setup.php:59)What do you guys think?
Or should I generate my own binaries? As the docs say if I use my own binaries there won't be support on GitHub and there could be security risks I wanted to ask here first.
Beta Was this translation helpful? Give feedback.
All reactions