GithubHelp home page GithubHelp logo

soutzis / hash-verifier Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 9.09 MB

This is a simple command-line tool, used to verify the hash digest of a file.

Home Page: https://github.com/soutzis/hash-verifier/releases

Python 100.00%
hash-verification integrity integrity-checker command-line-tool

hash-verifier's Introduction

Hash-Verifier (HashV)

HashV is a simple command-line tool, used to verify the hash digest of a file. Currently, it supports the algorithms MD5, SHA-256 and SHA-512. The tool was written in python and uses py2exe in order to be packaged as an executable.

Why HashV?

Tools such as this are essential when you need to ensure the integrity of a file that was downloaded over the network. Nowadays, the advancements being made in the area of cloud computing are massive. Therefore, downloading files from a remote location has become an inevitable task, especially in businesses. However, there are attacks (e.g. variants of Man-in-the-Middle (MITM) attacks) that could replace the original file a user intented to download with a malicious one. A more common attack, is when adversaries allegedly provide popular files/programs (that normally require payment) for free and thus tricking users into downloading malicious alternatives. With HashV, a user could download something from a 3rd party website and then use the original digest, provided by the original distributor to verify the integrity of the file they downloaded.

Note: Keep in mind that MD5 is a deprecated cryptographic hash function and has been broken many times. It is vulnerable and allows for collision within its domain to be discovered in mere seconds. It is advised to use either SHA-256 or SHA-512.

Setup Instructions (Windows 10)

The instructions for adding HashV to the environment path variable on your system are very simple:

  1. Download the .zip file and extract it anywhere you want on your computer. (It is recommended to create a new folder on your C: drive called hash-verifier and extract the .zip file there. You should then have a filepath looking like this: 'C:\hash-verifier\dist')
    • (a) FOR ADMINS: Go to the Windows search box and type "Edit the system environment variables" and press Enter. Then click on the button "Environment Variables". At the "System variables" (bottom box), select the "Path" variable and click "Edit".
    • (b) FOR NON-ADMINS: Go to the Windows search box and just type "Edit environment variables for your account" and press Enter. At the "User variables" (top box), select the "Path" variable and click "Edit".
  2. Click "New" and enter the path of the 'dist' folder wherever you extracted it. If you followed the recommended location from step-1, then here you should enter "C:\hash-verifier\dist"
  3. Reboot your computer. This is necessary for the path to register the new variable we created.

Done! You can now use hash-verifier from anywhere on your system by using the "hashv" command. Type "hashv help" in your terminal to see the usage option

Usage Example

Let's try HashV by downloading the latest VirtualBox installer and verifying the download using the sha-256 checksum from the website. This example assumes that you successfuly followed the setup instructions and added HashV to the environment path.

1. Download the latest VBox installer

image

2. Find the original sha-256 hash digest of the file you just downloaded image image

3. Go to the folder where you downloaded the file and type "cmd" in the explorer address bar image

4. Type hashv -filename- -hash- (Use tab for autocompletion in cmd) and press enter image image

Latest Release

You can find the latest release here, which includes instructions for adding hash-verifier to the environment path variable.

hash-verifier's People

Contributors

soutzis avatar

Watchers

 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.