![JAR search and dependency download from the Maven repository](/logo.png)
com.payneteasy.superfly.crypto.pgp.PGPCrypto Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of superfly-crypto Show documentation
Show all versions of superfly-crypto Show documentation
Contains crypto services like OpenPGP-compatible encryption
package com.payneteasy.superfly.crypto.pgp;
import java.io.IOException;
import java.io.OutputStream;
import com.payneteasy.superfly.crypto.PublicKeyCrypto;
public class PGPCrypto implements PublicKeyCrypto {
public boolean isPublicKeyValid(String armoredPublicKey) {
return PGPUtils.isPublicKeyValid(armoredPublicKey);
}
public void encrypt(byte[] clearText, String name, String armoredPublicKey, OutputStream os) throws IOException {
PGPUtils.encryptBytesAndArmor(clearText, name, armoredPublicKey, os);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy