{"id":31729859,"url":"https://github.com/ron4fun/hashlib4cpp","last_synced_at":"2025-10-09T07:18:13.470Z","repository":{"id":144160138,"uuid":"99931233","full_name":"ron4fun/HashLib4CPP","owner":"ron4fun","description":"Comprehensive Hashing Library for C++ Compilers.","archived":false,"fork":false,"pushed_at":"2021-07-26T14:42:04.000Z","size":520,"stargazers_count":28,"open_issues_count":0,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-07-20T23:46:52.264Z","etag":null,"topics":["crypto","cryptography","hash","hashing","sha256"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ron4fun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-08-10T14:20:48.000Z","updated_at":"2024-01-22T05:31:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"f6cbba80-3b5b-4e38-999d-a479241369b9","html_url":"https://github.com/ron4fun/HashLib4CPP","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ron4fun/HashLib4CPP","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ron4fun%2FHashLib4CPP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ron4fun%2FHashLib4CPP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ron4fun%2FHashLib4CPP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ron4fun%2FHashLib4CPP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ron4fun","download_url":"https://codeload.github.com/ron4fun/HashLib4CPP/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ron4fun%2FHashLib4CPP/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000985,"owners_count":26082972,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["crypto","cryptography","hash","hashing","sha256"],"created_at":"2025-10-09T07:18:11.665Z","updated_at":"2025-10-09T07:18:13.453Z","avatar_url":"https://github.com/ron4fun.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DEPRECATED \n⛔️ This library is no longer maintained, please consider using the upgraded version [HashLibPlus](https://github.com/ron4fun/HashLibPlus) instead.\n\n\n\n# HashLib4CPP [![License](http://img.shields.io/badge/license-MIT-green.svg)](https://github.com/ron4fun/HashLib4CPP/blob/master/LICENSE)\nHashLib4CPP is a C++11 library that provides an easy to use interface for computing hashes and checksums of strings, files, streams, bytearrays and untyped data to mention but a few.\nIt also supports **Incremental Hashing**, **Cloning** and **NullDigest**.\n\n**Supported Algorithms:**\n\n    Non-Cryptographic 32-bits Hash Algorithms: AP, BKDR, Bernstein, Bernstein1, DEK, DJB, \n    ELF, FNV, FNV1a, JS, Jenkins3, Murmur2, MurmurHash3_x86_32, OneAtTime, PJW, RS, \n    Rotating, SDBM, ShiftAndXor, SuperFast, XXHash32.\n\n    Non-Cryptographic 64-bits Algorithms: FNV, FNV1a, Murmur2_64, SipHash2_4, XXHash64.\n\n    Non-Cryptographic 128-bits Algorithms: MurmurHash3_x86_128, MurmurHash3_x64_128. \n\n    Checksum Algorithms: Adler32, All CRC Variants from CRC3 to CRC64. \n\n    Cryptographic Algorithms: GOST, Grindahl, HAS160, Haval, MD2, MD4, MD5, Panama, \n    RadioGatun, RIPEMD, RIPEMD128, RIPEMD160, RIPEMD256, RIPEMD320, SHA0, SHA1, SHA2-224,\n    SHA2-256, SHA2-384, SHA2-512, SHA2-512-224, SHA2-512-256, SHA3-224, SHA3-256, SHA3-384, \n    SHA3-512, Keccak-224, Keccak-256, Keccak-384, Keccak-512, Snefru128, Snefru256, Tiger,\n\tTiger2, WhirlPool, Blake2B, Blake2S, Streebog (GOST3411_2012_256, GOST3411_2012_512).\n\n    HMAC for any of the above.\n    \n    PBKDF2_HMAC for any of the above.\n\n**Tested Enviroments:**\n     \n    Visual Studio 2015.\n    Visual Studio 2017.\n\n    \n**Usage Examples.**\n\n```c++\n#include \"HashLib4CPP.h\"\n\nint main()\n{\n    IHash hash = HashLib4CPP::Crypto::CreateMD5();\n\t\t\n    IHash clone = hash-\u003eClone();\n\n    IHMAC hmac = HashLib4CPP::HMAC::CreateHMAC(hash);\n    hmac-\u003eSetKey(Converters::ConvertStringToBytes(\"password\"));\n\n    IHashResult Result1 = hash-\u003eComputeString(\"Hash\");\n    IHashResult Result2 = hmac-\u003eComputeString(\"Hash\");\n\t\n    bool check = Result1-\u003eCompareTo(Result2);\n    \n    return 0;\n}\n```\n\n **Unit Tests:**\n\t\n\tTo run the unit tests, you should have [boost library](http://www.boost.org/) \n\tinstalled in your workstation.\n\t\n\tFor VisualStudio, set environment variable BOOST_ROOT to your boost root folder \n\t(where the binary is).\n\n###License\n\nThis \"Software\" is Licensed Under  **`MIT License (MIT)`** .\n\n#### Tip Jar\n* :dollar: **Bitcoin**: `1Mcci95WffSJnV6PsYG7KD1af1gDfUvLe6`\n\n\nConclusion\n--------------------------------------------------\n\n   Special thanks to [Xor-el](https://github.com/xor-el) for making this library available in the first place.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fron4fun%2Fhashlib4cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fron4fun%2Fhashlib4cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fron4fun%2Fhashlib4cpp/lists"}