public void sendMessageRequest(Request message) throws IOException, InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException, IllegalBlockSizeException, BadPaddingException, InvalidAlgorithmParameterException{
		if(message instanceof LoginRequest){
			//((LoginRequest)message).setChallenge(this.encodeBase64(((LoginRequest)message).getChallenge()));
		}else{
			
		}
		byte[]array = this.toByteArray(message);
		this.initencryptChipher();
		byte[] aes = encrypt.doFinal(array);
		this.sendByteArray(aes);
	}