Git Product home page Git Product logo

sha.net's Introduction

SHA.NET

Overview ๐Ÿ‘๏ธ

SHA implementation in pure C# (.NET 8) Available hash algorithms:

  • SHA-1
  • SHA-224
  • SHA-256
  • SHA-384
  • SHA-512

Project description ๐Ÿ“‹

Project contains two parts:

  • SHA.NET - library with all SHA algorithms implementations
  • SHA_Checksum - simple program to create a hash value of the file

SHA.NET

This part contains SHA algorithms implementations. All uses pointers and some performance tricks like ArrayPool<T>.Shared or MethodImpl(MethodImplOptions.AggressiveInlining) attribute to be as fast as possible. If You never use pointers in C# You can look at this project to see how to use it. It was something new for me also.

SHA_Checksum

Simple one-file program which is used to create and print in command line the hash value of the file.

Add options to context menu

This program will be hard to use, so we can add some registry entries that allows to create hash values for all files. To achieve it You will need to run dotnet fsi config_registry.fsx in command line. It is important that You have to run cmd with admin priviliges. If you've ever wondered how to add options to context menu, this could be a good example for You.
โš ๏ธ This script will edit Your registry.
โš ๏ธ Always be careful when editing registry.

How to run โš™๏ธ

  • build SHA_Checksum project using dotnet build -c Release command
  • run dotnet fsi config_registry.fsx in command line with admin priviliges
  • to use the program, right click on any file and select SHA Checksum option (in Windows 11 this option will be available after clicking Show more options button).

sha.net's People

Contributors

zlociu avatar

Stargazers

 avatar

Watchers

 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.