public static void saveEncryptionKey(String filename, String key)
	{
		filename=filename.replace(".","_");
		filename=filename+".key";

		try
		{
			PrintWriter fout=new PrintWriter(new FileWriter(filename));
			fout.println(key);
			fout.close();
		}
		catch(Exception e){e.printStackTrace();}
	}