You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Call to undefined function sodium_crypto_secretbox_keygen()
I didn't find this function when search this text on Sodium package. But another functions from _secretbox exists in Sodium package:
sodium_crypto_secretbox
sodium_crypto_secretbox_open
How to generate secret key for sodium_crypto_secretbox if sodium_crypto_secretbox_keygen() function does not exist?
P.S. I found that this code could be the solution, but is this solution safe enough? $secret_key = random_bytes(SODIUM_CRYPTO_SECRETBOX_KEYBYTES); @paragonie-scott
The text was updated successfully, but these errors were encountered:
The unit tests are still running, but it should be fixed in 8843e0d which will be included in v1.4.0 once it's released. If any tests fail, I'll fix it tonight.
Hello to all!
I didn't find this function when search this text on Sodium package. But another functions from
_secretbox
exists in Sodium package:How to generate secret key for sodium_crypto_secretbox if sodium_crypto_secretbox_keygen() function does not exist?
P.S. I found that this code could be the solution, but is this solution safe enough?
$secret_key = random_bytes(SODIUM_CRYPTO_SECRETBOX_KEYBYTES);
@paragonie-scott
The text was updated successfully, but these errors were encountered: