Git Product home page Git Product logo

hashplusplus's Introduction

Contact me on:

Statistics



Dread's Activity Graph

Recent/Upcoming Projects

  • unnamed:
    • a privacy-oriented, secure message distribution network. More to come.
  • liboai (released):
    • a C++17 static and dynamic library to access the entire OpenAI API.
  • Hash++ (released):
    • a header-file only library that allows a user to retrieve multiple types of hashes from data, files, and files in nested directories--all through a simple, lightweight interface!
  • Everything else in the back of my head...

hashplusplus's People

Contributors

avfounder avatar d7ead avatar strinque avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

hashplusplus's Issues

Improve file hashing algorithm

The hashing of files works (at least for SHA256 that I need right now). However it's not efficient because it reads in memory the whole binary file, then copy this buffer into another one. For every block of cipher (ex: 32 bytes for SHA256), it's re-copied (without the ciphered block), thus copying the "big buffer" lots of times.

To hash a 2GB file, it will copy several millions of times the whole buffer which is very inefficient.
I will provide a series of fixes that should solve this behavior by reworking the hashing algorithm. It will read the file block by block (1MB) and it should be compatible for all the hashing algorithms.

Issue with SHA256

There is a typo for SHA2_256 hashing algorithm:

 case hashpp::ALGORITHMS::SHA2_256: {
	vSHA2_224.push_back(hashpp::SHA::SHA2_256().getHash(_data));

I'll provide a list of fixes soon.

Build issue

hashpp can't be build with latest vstudio because of "constexpr" functions that aren't "const".

Exemple:

constexpr void ctx_init();

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.