note 126966 added to function.openssl-encrypt

From: Date: Wed, 30 Mar 2022 13:37:40 +0000
Subject: note 126966 added to function.openssl-encrypt
Groups: php.notes 
Request: Send a blank email to php-notes+get-217783@lists.php.net to get a copy of this message
I'd like to point out that the command description doesn't very well point out, how the command really works for the less experienced user. One important point is, that you do NOT pass a tag to openssl_encrypt. Any value in the tag variable will be overwritten by openssl_encrypt. It by itself will create a tag which you will need to store. To be able to decrypt the encrypted secret with openssl_decrypt, you need to provide (at least) the secret, the cipher, the initialization vector, and the tag. ---- Server IP: 45.112.84.4 Probable Submitter: 80.90.5.135 (proxied: 2001:16b8:26e9:6f00:389:86f2:a389:2b3) ---- Manual Page -- https://php.net/manual/en/function.openssl-encrypt.php Edit -- https://main.php.net/note/edit/126966 Del: integrated -- https://main.php.net/note/delete/126966/integrated Del: useless -- https://main.php.net/note/delete/126966/useless Del: bad code -- https://main.php.net/note/delete/126966/bad+code Del: spam -- https://main.php.net/note/delete/126966/spam Del: non-english -- https://main.php.net/note/delete/126966/non-english Del: in docs -- https://main.php.net/note/delete/126966/in+docs Del: other reasons-- https://main.php.net/note/delete/126966 Reject -- https://main.php.net/note/reject/126966 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#217783) next »