}
private static String SignEnvelopeData(String message) throws PGPException,
IOException {
PGPLib pgp = new PGPLib();
// clear sign
String privateKeyPassword = "wegrata";
String clearSignedMessage = pgp.clearSignString(message,
"C:\\users\\gratat\\private.key", privateKeyPassword,
HashAlgorithm.SHA256);
return clearSignedMessage;
}