Code example for BadPaddingException

Methods: printStackTrace

0
			} catch (IllegalBlockSizeException e) {
				// TODO Auto-generated catch block 
				e.printStackTrace();
			} catch (BadPaddingException e) {
				// TODO Auto-generated catch block 
				e.printStackTrace();
			} 
		} 
		else 
			net_write.write(input+"\n");
		 
		net_write.flush();
	} 
	 
	private String readEnc() {
		try { 
			int rdy_wait = 0;
			while(!net_read.ready())
			{ 
				//Only wait 10secs then throw exeption 
				if(rdy_wait > 50)