note 123361 rejected from function.openssl-encrypt by cmb
| From: | cmb@php.net | Date: | Fri, 23 Nov 2018 10:05:08 +0000 |
| Subject: | note 123361 rejected from function.openssl-encrypt by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-209760@lists.php.net to get a copy of this message | ||
Note Submitter: ishanjain28 at gmail dot com
----
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