From 5b848aeb03fc31ee104960eea4d1c7367b4ee83a Mon Sep 17 00:00:00 2001 From: Mark Jones Date: Wed, 6 Sep 2017 20:12:43 +0000 Subject: [PATCH] documenting openssl encrypt/decrypt https://bugs.php.net/bug.php?id=71817 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343016 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../openssl/functions/openssl-decrypt.xml | 7 +-- .../openssl/functions/openssl-encrypt.xml | 62 ++++++++++++++++++- 2 files changed, 64 insertions(+), 5 deletions(-) diff --git a/reference/openssl/functions/openssl-decrypt.xml b/reference/openssl/functions/openssl-decrypt.xml index de9195edbc..ef6a802c32 100644 --- a/reference/openssl/functions/openssl-decrypt.xml +++ b/reference/openssl/functions/openssl-decrypt.xml @@ -23,8 +23,6 @@ Takes a raw or base64 encoded string and decrypts it using a given method and key. - &warn.undocumented.func; - @@ -35,7 +33,7 @@ data - The data. + The encrypted message to be decrypted. @@ -43,7 +41,8 @@ method - The cipher method. + The cipher method. For a list of available cipher methods, use + openssl_get_cipher_methods. diff --git a/reference/openssl/functions/openssl-encrypt.xml b/reference/openssl/functions/openssl-encrypt.xml index de7ddfb671..be59ac678a 100644 --- a/reference/openssl/functions/openssl-encrypt.xml +++ b/reference/openssl/functions/openssl-encrypt.xml @@ -34,7 +34,7 @@ data - The data. + The plaintext message data to be encrypted. @@ -151,6 +151,66 @@ + + + &reftitle.examples; + + + AES Authenticated Encryption in GCM mode example for PHP 7.1+ + + +]]> + + + + + AES Authenticated Encryption example for PHP 5.6+ + + +]]> + + + + + + + &reftitle.seealso;