private EncryptedCard encryptCard(Card card) throws InvalidKeyException,
			IllegalBlockSizeException, BadPaddingException {
		
		if (e == null) {
			System.err
					.println("Cannot encrypt when using decrypting constructor RSAService(gp, gq, gd)");
			return null;
		}
		String encCardData = String.valueOf(card.cardType) + card.suit;
		EncryptedCard encCard = new EncryptedCard();
		encCard.cardData = encrypt(encCardData.getBytes());
		return encCard;
	}