Every time I try to run the decryption algorithm on messages encoded with gpg (the key pairs have been generated in gpg as well), I get the following errors :
The first and the second errors are triggered when using the armored version of the key and the message.
The second one only is triggered when using the unarmored versions.
Hi,
Every time I try to run the decryption algorithm on messages encoded with gpg (the key pairs have been generated in gpg as well), I get the following errors :
Severity: Warning
Message: Undefined array key "e"
Filename: lib/openpgp_crypt_rsa.php
Line Number: 250
Backtrace:
File: /OpenPGP-PHP/lib/openpgp_crypt_rsa.php Line: 250 Function: _error_handler
...
And
A PHP Error was encountered Severity: Warning
Message: Undefined array key "d"
Filename: lib/openpgp_crypt_rsa.php
Line Number: 251
Backtrace:
File: OpenPGP-PHP/lib/openpgp_crypt_rsa.php Line: 251 Function: _error_handler
The first and the second errors are triggered when using the armored version of the key and the message. The second one only is triggered when using the unarmored versions.
The code used for the ASCII version is :
For the unarmored version
The files used for the test are attached.
Thanks in advance Archive.zip