private EncryptedCard encryptEncCard(EncryptedCard card)
			throws InvalidKeyException, IllegalBlockSizeException,
			BadPaddingException {
		
		if (e == null) {
			System.err
					.println("Cannot encrypt when using decrypting constructor RSAService(gp, gq, gd)");
			return null;
		}
		EncryptedCard encCard = new EncryptedCard();
		encCard.cardData = encrypt(card.cardData);
		return encCard;
	}