}
try {
byte[] base64 = cyphertext.getBytes("ASCII"); //$NON-NLS-1$
ByteArrayInputStream bin = new ByteArrayInputStream(base64);
Base64InputStream base64in = new Base64InputStream(bin);
ByteArrayOutputStream buffer = new ByteArrayOutputStream();
byte[] barr = new byte[cyphertext.length()];
while(true) {
int r = base64in.read(barr);
if(r<=0) break;
buffer.write(barr, 0, r);
}
byte[] encrypted = buffer.toByteArray();
byte[] plaintext = decrypt(key, encrypted);