Closed beshoo closed 3 years ago
These key blocks are not valid OpenPGP armor -- they are missing the CRC at the end. I have pushed a version to master that makes this case just a notice instead of a full return-NULL level error.
The other problem with this example is that the included message is not encrypted at all. This would previously result in NULL being returned but will now result in an exception.
Warning: Invalid argument supplied for foreach() in encryptDecrypt.php on line 53