public static ArrayList<byte[]> decodeFile(ArrayList<byte[]> gFile, String path) throws IOException {
		File pwdFile = new File(server.CloudServer.serverRoot + "pwd/" + path);
		File indexFile = new File(server.CloudServer.serverRoot + "index/" + path);
		FileReader pwdIS = new FileReader(pwdFile);
		BufferedReader pwdBR = new BufferedReader(pwdIS);
		FileReader indexIS = new FileReader(indexFile);
		BufferedReader indexBR = new BufferedReader(indexIS);
		ArrayList<String> keyString = new ArrayList<String>();
		ArrayList<String> rString = new ArrayList<String>();
		ArrayList<byte[]> returnByte = new ArrayList<byte[]>();
		String indexString = null;
		SecretKeySpec key;
		String line = null;
		int i = 0;
		while ((line = pwdBR.readLine()) != null) {
			keyString.add(line);
			i++;
		}
		pwdBR.close();

		int index = -1;
		for (int k = 0; k < i; k++) {
			indexString = indexBR.readLine();
			index = Integer.parseInt(indexString);
			key = new SecretKeySpec(keyString.get(index).getBytes(), "AES");
			returnByte.add(decrypt(gFile.get(index), key));
		}
		indexBR.close();

		return returnByte;
	}