public static byte[] EncryptData(String plainTextData)
	{
		BuyerEncryption.getPublicKey();
		byte[] dataToEncrypt = plainTextData.getBytes();
		byte[] encryptedBytes = null;
		
		//encrypt plainTextData using serverPublicKey
		Cipher cipher;
		try {
			cipher = Cipher.getInstance("RSA");
			cipher.init(Cipher.ENCRYPT_MODE, serverPublicKey); //pubKey stored earlier
			encryptedBytes = cipher.doFinal(dataToEncrypt);
		} catch (NoSuchAlgorithmException | NoSuchPaddingException | InvalidKeyException | IllegalBlockSizeException | BadPaddingException e) {
			e.printStackTrace();
		}
		
		return encryptedBytes;
	}