-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement better encryption / Libsodium #343
Comments
@LukasReschke Didn't you implemented something to address some points of this? |
Reading that article helps 😉
|
It's very sad, that PHP hast no GCM support yet... |
Continuing reading would also be good... 😉
So this would be something you can implement - when PHP 7.1 is released. However I admit I only read the article after I posted the link here. 😔 |
However you might also be able to implement it right now using libsodium and the libsodium PHP wrapper. Or you could even use ChaCha20-Poly1305, which is also a symmetric encryption. Additionally this would fix the "design your own crypto" problem as libsodium is well-tested. There is also a PHP guide. |
Could you reopen this issue? I already adjusted the title. Using libsodium if installed can provide a significant security advantage compared to "plain PHP" implementations. |
FYI Libsodium will be included in PHP 7.20 by default, so you can make use of it… |
Yes - in 5 years 😞 |
No, users can already install it by themself and use it in earlier versions of PHP. And some hosters have Libsodium pre-installed, so it is a good idea to implement it now… |
Now, there is even a pure PHP polyfill by @paragonie-scott for sodium, so you have no excuse for not using it, anymore. |
This blog post is a bit older, but it explains why the encrypted used in OwnCloud is somehow flawed:
https://blog.hboeck.de/archives/880-Pwncloud-bad-crypto-in-the-Owncloud-encryption-module.html
I wonder whether there is any plan to change this crypto module and address these concerns in Nextcloud.
The text was updated successfully, but these errors were encountered: