ti posto le mie 2..
il decode non te l'avevo dato

codice:
	// FUNZIONE PER ENCODE DI UNA STRINGA
	public String encode(String stringToEncode){
		String returnValue = "";
		BASE64Encoder encrypt = new BASE64Encoder();
		try{
			String codedString = encrypt.encode(stringToEncode.getBytes());
			returnValue = codedString;
		} catch (Exception e) {
			e.printStackTrace();
		}
		return returnValue;
	}
	
	
	// FUNZIONE PER DECODE DI UNA STRINGA
	public String decode(String stringToDecode){
		String returnValue = "";
		BASE64Decoder decrypt = new BASE64Decoder();
		try {
			String decodedString = new String(decrypt.decodeBuffer(stringToDecode));
			returnValue = decodedString;	
		} catch (Exception e) {
			e.printStackTrace();
		}
		return returnValue;
	}