You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Paul Schaub 1257c52ede
PGPainless 1.4.3
6 days ago
src pgpainless-sop: reuse shared sop-java test suite 6 days ago PGPainless 1.4.3 6 days ago
build.gradle pgpainless-sop: reuse shared sop-java test suite 6 days ago


Spec Revision: 4 Maven Central javadoc

Implementation of the Stateless OpenPGP Protocol using PGPainless.

This module implements sop-java using pgpainless-core. If your code depends on sop-java, this module can be used as a realization of those interfaces.

Get started

To start using pgpainless-sop in your code, include the following lines in your build script:

// If you use Gradle
dependencies {
    implementation "org.pgpainless:pgpainless-sop:1.4.3"

// If you use Maven

pgpainless-sop will transitively pull in its dependencies, such as sop-java and pgpainless-core.

Usage Examples

SOP sop = new SOPImpl();
// Generate an OpenPGP key
byte[] key = sop.generateKey()
        .userId("Alice <>")

// Extract the certificate (public key)
byte[] cert = sop.extractCert()

// Encrypt a message
byte[] message = ...
byte[] encrypted = sop.encrypt()

// Decrypt a message
ByteArrayAndResult<DecryptionResult> messageAndVerifications = sop.decrypt()
byte[] decrypted = messageAndVerifications.getBytes();
// Signature Verifications
DecryptionResult messageInfo = messageAndVerifications.getResult();
List<Verification> signatureVerifications = messageInfo.getVerifications();