public String generateASCIISignature() throws SignatureException, PGPException {
try {
PGPSignature signature = generateSignature();
ByteArrayOutputStream buffer = new ByteArrayOutputStream();
ArmoredOutputStream armorStream = new ArmoredOutputStream(buffer);
signature.encode(armorStream);
armorStream.close();
return new String(buffer.toByteArray());
} catch(IOException e) {
//Should never happen since we are just using a memory buffer
throw new RuntimeException(e);