We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I get this error when trying the encrypted cookie recipe here: https://paragonie.com/book/pecl-libsodium/read/09-recipes.md#encrypted-cookies
Fatal error: Uncaught SodiumException: unsupported key length in /Users/randy/starter/admin/SodiumCookie.php:106
Line 106 is this:
$encKey = sodium_crypto_generichash( sodium_crypto_generichash('encryption', $cookieName), $this->key, SODIUM_CRYPTO_STREAM_KEYBYTES );
I found this in the ebook but it didn't do the trick
$key = random_bytes(SODIUM_CRYPTO_AUTH_KEYBYTES);
How do I properly generate the secret key that is required?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I get this error when trying the encrypted cookie recipe here:
https://paragonie.com/book/pecl-libsodium/read/09-recipes.md#encrypted-cookies
Line 106 is this:
I found this in the ebook but it didn't do the trick
How do I properly generate the secret key that is required?
The text was updated successfully, but these errors were encountered: