-
Notifications
You must be signed in to change notification settings - Fork 28
[FUTURE] Future Enhancement: Libsodium for Illuminate\Encryption #374
Comments
Hi again. Sodium_compat 1.0 is out, if anyone wants this to happen. |
@paragonie-scott I should point out that sodium extension will be in core for php version 7.2 :) |
As the sodium extension has been moved to the PHP core, would it be safe to assume that this API itself is stable enough, perhaps not the fallback library? The default Would it be an idea to add a crypto 'driver', like |
@taylorotwell What's your take on this? |
The existing construction (
That would be fine. |
I would be fine with PRs for this kind of thing. |
I've been working on a pure PHP implementation of the cryptography features offered by libsodium. It rests at paragonie/sodium_compat.
One important detail: sodium_compat opportunistically uses the PHP extension in PECL if it exists. Additionally, sodium_compat includes a lot of built-in design decisions to reduce the risk of cache-timing vulnerabilities.
The algorithms implemented include:
crypto_auth()
)crypto_secretbox()
)crypto_sign()
)crypto_scalarmult()
,crypto_kx()
)crypto_box()
,crypto_box_seal()
)crypto_generichash()
, etc.)crypto_shorthash()
)However, sodium_compat has yet to be audited by an independent third party. I'm filing an issue now to kick off any planning or discussion necessary to make sodium_compat available to Laravel users as soon as it gets audited. (I'd also like to gauge interest in seeing this in a future Laravel release.)
Sodium_compat v1.0.0 will only be tagged after it has passed said cryptography audit, so please don't adopt it until that has come to pass.See the release notes for sodium compat v1.0 for why we deviated from this plan.The text was updated successfully, but these errors were encountered: