public MessageCode(IMessage clair, IMessage crypte, ICode code) {
		if(code instanceof ICodeCryptanalysable) {
			this.clair=clair;
			this.crypte=crypte;
			this.code=code;
			this.clairKnown=true;
			this.keyKnown=false;
			this.key=((ICodeCryptanalysable)this.getCode()).cryptanalyseCle(this.getMessageDecode(), this.getMessageCode());
			this.keyKnown=this.getCode().succesCle();
			this.time=this.getCode().tempsCrypto();
		}
		else {
			JOptionPane.showMessageDialog(null, "Dsol, la cyptanalyse n'est pas implmente pour ce code", "Erreur", JOptionPane.ERROR_MESSAGE);
		}

	}