What algorithm does PHP openssl_private_encrypt use?
[email protected] Wed, 11 Sep 2024 00:03:10 -0500
| Newsgroups | gmane.comp.php.general |
|---|---|
| Message-ID | <[email protected]> |
openssl_encrypt/decrypt functions specify a "cipher_algo" paramater wherein a specific algorithm may be chosen/specified. openssl_private/public/encrypt/decrypt, however have no algorithm paramater so what do they use for an algorithm? How does one encrypt/decrypt with just a (real) key? Do they just "whack the data N times with the 'key'" without using any particular algorithm? Or maybe a hard-coded passage through an "xor tree"?