From f467e8922859bc0760f1323575b6729fa3e1f4b2 Mon Sep 17 00:00:00 2001 From: Christoph Michael Becker Date: Mon, 28 Dec 2020 14:37:01 +0000 Subject: [PATCH] Fix #80430: openssl_encrypt() is not verifying that key is present or not git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352242 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/openssl/functions/openssl-encrypt.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reference/openssl/functions/openssl-encrypt.xml b/reference/openssl/functions/openssl-encrypt.xml index bee2377275..778a135d23 100644 --- a/reference/openssl/functions/openssl-encrypt.xml +++ b/reference/openssl/functions/openssl-encrypt.xml @@ -50,7 +50,9 @@ key - The key. + The passphrase . If the passphrase is shorted than expected, it is silently padded with + NUL characters; if the passphrase is longer than expected, it is + silently truncated.