private static void handleEncryption() {
		BigInteger exponent=null, module=null;
		try {
			exponent = new BigInteger(EncryptionFrame.getInstance().tfExponent.getText());
			if(exponent==null || exponent.compareTo(new BigInteger("0"))<=0) throw new IllegalStateException();
		} catch(Exception e) {
			JOptionPane.showMessageDialog(EncryptionFrame.getInstance(), "Exposant incorrect!","Erreur!",JOptionPane.ERROR_MESSAGE);
			return;
		}
		try {
			module = new BigInteger(EncryptionFrame.getInstance().tfModule.getText());
			if(module==null || module.compareTo(new BigInteger("0"))<=0) throw new IllegalStateException();
		} catch(Exception e) {
			JOptionPane.showMessageDialog(EncryptionFrame.getInstance(), "Module incorrect!","Erreur!",JOptionPane.ERROR_MESSAGE);
			return;
		}

		String message = EncryptionFrame.getInstance().textAreaMessage.getText();
		if(message==null || message.length()==0) {
			JOptionPane.showMessageDialog(EncryptionFrame.getInstance(), "Message incorrect!","Erreur!",JOptionPane.ERROR_MESSAGE);
			return;
		}
		if(new BigInteger(message.getBytes()).compareTo(module)>=0) {
			JOptionPane.showMessageDialog(EncryptionFrame.getInstance(), "Le message est trop long pour ce module!","Erreur!",JOptionPane.ERROR_MESSAGE);
			return;
		}
		BigInteger cypher = RSA.chiffrementRSA(message, exponent, module);
		EncryptionFrame.getInstance().textAreaCypher.setText(cypher.toString());
	}