GithubHelp home page GithubHelp logo

hashcomparer's Introduction

HashComparer

HashComparer is a small application that checks the integrity of files by comparing their pre-calculated checksums in a file.

How Does It Work?

When it's first run, it creates a database of paths of files and their checksums.

Checksums are calculated by MD5 algorithm.

The idea is to find modified files by comparing the checksums of files to the ones in the created database file.

The added, deleted, and modified files are logged in a log file and/or sent as e-mail.

Configuration

The configuration is in App.config and NLog.config.

When project is compiled, App.config is put under bin and named as HashComparer.exe.config.

The configuration keys and their values are described below:

TargetDirectories: The program scans these directories. The directories are seperated by pipe (|) character. If no target directory is specified, the directory where application resides is scanned.

BackupFolder: In each execution of HashComparer, the index file gets backed-up to the backup folder. If no backup folder is specified, a folder named "hashcomparer_backup" is created where application resides.

IndexFileLocation: The path of the text file that includes the paths of files, their checksums, and time of entry. If nothing is specified, the default value is "_hc_index.dat".

SearchLevel: The default value is 1. To scan the subdirectories under the target directories, the level should be greater than 1.

For instance to scan the "d" directory under "a" (a->b->c->d), the search level should be 4.

SearchPattern: This is the file filter that specifies which files will be included. The default is * which means all files. To include for example just pdf and xlsx files, .pdf;.xlsx should be the value.

Notes for Developers

It's a .Net application. The development IDE is Visual Studio Community 2017. The target framework is 4.6.1.

Installation

Download the latest version from the releases page.

Extract the files, change the configuration (by editing HashComparer.exe.config and NLog.config), and run HashComparer.

You can create a scheduled task in Windows so that you can check integrities of files periodically every day on a specific time.

hashcomparer's People

Contributors

zafergurel avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.