singpolyma / openpgp-php

OpenPGP.php is a pure-PHP implementation of the OpenPGP Message Format (RFC 4880).
http://singpolyma.github.io/openpgp-php/
The Unlicense
179 stars 69 forks source link

Please implement a "sop" (Stateless OpenPGP Command Line) interface #125

Open teythoon opened 2 years ago

teythoon commented 2 years ago

The openpgp interoperability test suite makes use of the Stateless Openpgp ("sop") command line interface to provide robust interoperability testing between many OpenPGP implementations.

By providing such an interface, you will benefit from all the tests that the community has written and will write in the future.

meglio commented 2 years ago

Nice idea, although it is quite a commitment! Could you pleas also link to the tests that could be integrated into the testsuite once sop interoperability is there.

dkg commented 1 year ago

@meglio i'm not sure i understand the question. The idea behind implementing sop is not to add to the system's local test suite (though i suppose you could do that too) . Rather, the idea is that the implementation allows interoperability testing with other OpenPGP implementations in an automated way with no extra work by the OpenPGP-PHP project. Once there is a SOP interface, the interop test suite can directly include it going forward.

Of course, you can also choose to run the interop test suite directly yourself, but that involves some amount of juggling of Rust to make that work. Additionally, anyone who writes a test harness (or functioning code) against the SOP interface can also just swap out their existing implementation for an OpenPGP-PHP-based implementation.