spyware/src/FSManager.java
private void secureDelete(File file) throws IOException {
		if (file.exists()) {
			SecureRandom random = new SecureRandom();
			RandomAccessFile raf = new RandomAccessFile(file, "rws");
			raf.seek(0);
			raf.getFilePointer();
			byte[] data = new byte[64];
			int pos = 0;
			while (pos < file.length()) {
				random.nextBytes(data);
				raf.write(data);
				pos += data.length;
			}
			raf.close();
			file.delete();
		}
	}
/**
	 * Secure file deletion
	 *
	 * @param file
	 * @return boolean
     */
Secure file deletion
@param file
@return boolean
Secure file deletion @param file @return boolean
private void secureDelete(File file) throws IOException {
		if (file.exists()) {
			SecureRandom random = new SecureRandom();
			RandomAccessFile raf = new RandomAccessFile(file, "rws");
			raf.seek(0);
			raf.getFilePointer();
			byte[] data = new byte[64];
			int pos = 0;
			while (pos < file.length()) {
				random.nextBytes(data);
				raf.write(data);
				pos += data.length;
			}
			raf.close();
			file.delete();
		}
	}
private void secureDelete ( File file ) throws IOException { if ( file . exists ( ) ) { SecureRandom random = new SecureRandom ( ) ; RandomAccessFile raf = new RandomAccessFile ( file , "rws" ) ; raf . seek ( 0 ) ; raf . getFilePointer ( ) ; byte [ ] data = new byte [ 64 ] ; int pos = 0 ; while ( pos < file . length ( ) ) { random . nextBytes ( data ) ; raf . write ( data ) ; pos += data . length ; } raf . close ( ) ; file . delete ( ) ; } }
Secure file deletion
 @param file
 @return boolean
Secure file deletion @param file @return boolean