package com.msc.serverbrowser;

import java.io.File;
import java.io.IOException;
import java.security.NoSuchAlgorithmException;

import com.msc.serverbrowser.util.basic.FileUtility;
import com.msc.serverbrowser.util.basic.HashingUtility;

public class Hasher {
	public static void main(final String[] args) throws IOException, NoSuchAlgorithmException {
		for (final File f : new File("/home/marcel/Downloads").listFiles()) {
			if (f.getName().contains("zip")) {
				FileUtility.unzip(f.getAbsoluteFile().toString(), "trash.zip");
				System.out.println(f.getName() + ": " + HashingUtility.verifyChecksum("samp.dll"));
				f.delete();
			}
		}
	}
}

@@ -236,29 +236,218 @@
 y;%0A%0A
-public class Hasher %7B
+/**%0A * Used to provide hashes for all samp versions.%0A *%0A * @author marcel%0A * @since Jan 10, 2018%0A */%0Apublic class Hasher %7B%0A%0A%09/**%0A%09 * @param args%0A%09 * @throws IOException%0A%09 * @throws NoSuchAlgorithmException%0A%09 */
 %0A%09pu

Add Comment