public static String encrypt(BigInteger modulus, BigInteger key,
			String plain)
	{
		String returnString = new String();
		String temp;
		BigInteger x, y;
		while (plain.length() > 0)
		{
			try
			{
				temp = plain.substring(0, 100);
				plain = plain.substring(100);
			} catch (Exception e)
			{
				temp = plain.substring(0, plain.length());
				plain = "";
			}

			temp = stringToBytes(temp);
			while (temp.length() < 100)
				temp += "0";
			x = new BigInteger(temp);
			y = x.modPow(key, modulus);
			returnString += y + ":";
		}

		return returnString.substring(0, returnString.length() - 1);
	}