ASCII Armor strings compatibility issue with OpenKeychain
-
OpenKeychain is unable to decrypt messages generated with the plugin.
It’s a compatibility issue with ASCII Armor strings being too long.
Although your code follows RFC4880, I think there is no good reason not to reduce the size to 64 (instead of 75) which is what I observe as standard length in most applications.
I know it’s OpenKeychain’s responsibility to adapt their code. But if it improves compatibility I, again, don’t see why not adapt yours aswell.
As far as I know (as of v0.4.2 ) it’s just changing line 141 in class-wp-openpgp.php to:
return wordwrap(OpenPGP::enarmor($data, $marker, $headers), 64, "\n", true);
Just a suggestion. (I had to apply it to my setup anyway)
I hope it to be helpful in some way.
(It actually took me a lot to find out… ?? )Thank you very much. Your work is very appreciated.
- The topic ‘ASCII Armor strings compatibility issue with OpenKeychain’ is closed to new replies.