pecl-libsodium-doc
pecl-libsodium-doc copied to clipboard
Free Online Documentation for the Libsodium PHP Extension
Hello, considering the minimum hash lenght 16 byte, and needing 5 or 8 byte of hash lenght, I've noticed that crop the 16 byte to 5 or 8 doesn't produce...
Formats: - PDF (WkHtmlToPdf) - ePUB - MOBI This will also require me to figure out how I want to set up the release workflow, etc. Build locally and upload?...
i have a webserver with php 7.3.11 but it seems libsodium is not installed. is there a way to include a file instead of installing the library ? i don't...
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 =...
In [this page](https://download.libsodium.org/doc/secret-key_cryptography/aead.html) the LibSodium describe the safest way to create a nonce in AES-GCM, ChaCha20Poly1305, ChaCha20Poly1305-IEFT and XChaCha20Poly1305. Based on this information all methods are safe using "Counter, permutation"....
Hello, I wanted to know what is the best way to store the public and private key in the database, because the string generated by the libsodium functions is difficult...
well when I do the following: $h1=@sodium_crypto_pwhash_str("test",1,1
If you run `pecl install libsodium` (as currently recommended in the install guide in the docs) then you'll get libsodium `2.x` which is BC breaking with `1.x`. Extension is also...
I'm trying to understand how AEAD works. In the [cookie recipe](https://paragonie.com/book/pecl-libsodium/read/09-recipes.md#encrypted-cookies), why don't you use crypto_secretbox? From what I understand, it does the job: > We want to store data...