note 123361 added to function.openssl-encrypt
| From: | ishanjain28 at gmail dot com | Date: | Fri, 23 Nov 2018 06:12:10 +0000 |
| Subject: | note 123361 added to function.openssl-encrypt | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-209758@lists.php.net to get a copy of this message | ||
Hi,
I have a module in Go that encrypts emails with AES-256-CBC. I want to decrypt this in PHP. The PHP
module uses openssl_encrypt.
The ciphertext generated by Go module fails to decrypt by the PHP module. Both use the exact same IV
and KEY.
Can someone tell me what am I doing wrong??
My PHP code is here, https://pastebin.com/raw/ywzjiqeA
----
Server IP: 208.43.231.9
Probable Submitter: 49.15.239.130
----
Manual Page -- http://php.net/manual/en/function.openssl-encrypt.php
Edit -- https://master.php.net/note/edit/123361
Del: integrated -- https://master.php.net/note/delete/123361/integrated
Del: useless -- https://master.php.net/note/delete/123361/useless
Del: bad code -- https://master.php.net/note/delete/123361/bad+code
Del: spam -- https://master.php.net/note/delete/123361/spam
Del: non-english -- https://master.php.net/note/delete/123361/non-english
Del: in docs -- https://master.php.net/note/delete/123361/in+docs
Del: other reasons-- https://master.php.net/note/delete/123361
Reject -- https://master.php.net/note/reject/123361
Search -- https://master.php.net/manage/user-notes.php