安卓加密

安卓图片加密,视频加密,文本加密,一切文件,甚至给APP加密也可以,只不过解密比较麻烦

 public static void jiami(String b,String c,String d,String word) throws IOException{
		
		File file2=new File(d);
		if (!file2.exists()) {
			file2.createNewFile();
		}
		FileInputStream fileInputStream=new FileInputStream(b);
		FileInputStream fileInputStream1=new FileInputStream(c);
		FileOutputStream fileOutputStream=new FileOutputStream(d);
		BufferedWriter bufferedWriter=new BufferedWriter(new FileWriter(d,true));
		byte[] data=new byte[1024];
		byte[] data1=new byte[512];
		while ((fileInputStream.read(data))!=-1) {
			
			fileOutputStream.write(data);
			while ((fileInputStream1.read(data))!=-1) {
				fileOutputStream.write(data);
				countstream++;
			if (countstream==1) {
				fileOutputStream.write(data1);
			}
			}
		}
		fileInputStream.close();
		fileInputStream1.close();
		fileOutputStream.flush();
		fileOutputStream.close();
		bufferedWriter.write(word);
		bufferedWriter.flush();
		bufferedWriter.close();
		
	}


你可能感兴趣的:(安卓加密)