All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.payneteasy.superfly.crypto.pgp.PGPCrypto Maven / Gradle / Ivy

There is a newer version: 1.7-32
Show newest version
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