{"id":13731519,"url":"https://github.com/aksalj/hashlibpp","last_synced_at":"2026-01-23T08:37:42.863Z","repository":{"id":11574889,"uuid":"14063456","full_name":"aksalj/hashlibpp","owner":"aksalj","description":"Simple and very easy to use library to create a cryptographic checksum (hash) in plain C++","archived":false,"fork":false,"pushed_at":"2014-12-23T15:31:02.000Z","size":224,"stargazers_count":14,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-04T02:10:13.796Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://hashlib2plus.sourceforge.net/index.html","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aksalj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-11-02T08:40:45.000Z","updated_at":"2024-07-06T00:58:19.000Z","dependencies_parsed_at":"2022-09-24T00:10:52.320Z","dependency_job_id":null,"html_url":"https://github.com/aksalj/hashlibpp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aksalj%2Fhashlibpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aksalj%2Fhashlibpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aksalj%2Fhashlibpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aksalj%2Fhashlibpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aksalj","download_url":"https://codeload.github.com/aksalj/hashlibpp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224702621,"owners_count":17355584,"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","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":[],"created_at":"2024-08-03T02:01:31.893Z","updated_at":"2026-01-23T08:37:42.857Z","avatar_url":"https://github.com/aksalj.png","language":"C++","readme":"hashlib++\n=========\n\n`hashlib++` is a simple and very easy to use library to create a cryptographic\nchecksum called `hash`. It is written in plain C++ and should work with every compiler and platform. \n\n`hashlib++` allows you to create a hash (for example `MD5` or `SHA1`) with only one single method-call. So if you want to create a hash based on a file or a string quickly you might be interested. \n\n\nBy now hashlib++ supports the following functions:\n\n\t-\u003e MD5\t\tMessage-Digest algorithm 5\n\t-\u003e SHA1  \tSecure Hash Algorithm 1\n\t-\u003e SHA2-Family \tSecure Hash Algorithm 256, 384 and 512\n\t\n\nRun and/or modify `build.sh` to build and use hashlib++\n\n##Sample usage\n```cpp\n#include \u003chashlibpp.h\u003e\n#include \u003cstring\u003e\n#include \u003ciostream\u003e  //for \"cerr\"\n\n//creating a wrapper object \nhashwrapper *myWrapper = new md5wrapper();\n \ntry{\n\t// create a hash from a string\n\tstd::string hash1 = myWrapper-\u003egetHashFromString(\"Hello World\");\n    \n    // create a hash based on a file\n\tstd::string hash2 = myWrapper-\u003egetHashFromFile(\"README.md\");\n\n}catch(hlException \u0026e) {\n \tstd::cerr \u003c\u003c \"Error(\"  \u003c\u003c e.error_number() \u003c\u003c \"): \" \u003c\u003c e.error_message() \u003c\u003c std::endl;\n}\n\ndelete myWrapper;\n```\n\n#Just give it a try.\n\nSee [http://hashlib2plus.sourceforge.net/index.html](http://hashlib2plus.sourceforge.net/index.html) for more info.\n","funding_links":[],"categories":["Maths"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faksalj%2Fhashlibpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faksalj%2Fhashlibpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faksalj%2Fhashlibpp/lists"}