{"id":20011641,"url":"https://github.com/elceef/ppdeep","last_synced_at":"2025-06-17T04:39:33.718Z","repository":{"id":52682613,"uuid":"260880652","full_name":"elceef/ppdeep","owner":"elceef","description":"Pure-Python library for computing fuzzy hashes (ssdeep)","archived":false,"fork":false,"pushed_at":"2021-04-21T08:22:25.000Z","size":7,"stargazers_count":39,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-04T09:53:57.987Z","etag":null,"topics":["fuzzy-hashes","library","python","ssdeep"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elceef.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-03T10:20:23.000Z","updated_at":"2025-05-25T07:11:29.000Z","dependencies_parsed_at":"2022-08-21T16:00:28.105Z","dependency_job_id":null,"html_url":"https://github.com/elceef/ppdeep","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/elceef/ppdeep","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elceef%2Fppdeep","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elceef%2Fppdeep/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elceef%2Fppdeep/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elceef%2Fppdeep/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elceef","download_url":"https://codeload.github.com/elceef/ppdeep/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elceef%2Fppdeep/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260294188,"owners_count":22987600,"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":["fuzzy-hashes","library","python","ssdeep"],"created_at":"2024-11-13T07:26:55.448Z","updated_at":"2025-06-17T04:39:33.691Z","avatar_url":"https://github.com/elceef.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"ppdeep\n======\n\nThis is a pure-Python library for computing context triggered piecewise hashes\n(CTPH), also called fuzzy hashes, or often ssdeep after the name of a popular\ntool. At a very high level, fuzzy hashing is a way to determine whether two\ninputs are similar, rather than identical. Fuzzy hashes are widely adopted in\ndigital forensics and malware detection.\n\nThis implementation is based on SpamSum by Dr. Andrew Tridgell.\n\nUsage\n-----\n\nTo compute a fuzzy hash, simply use `hash()` function:\n\n```\n\u003e\u003e\u003e import ppdeep\n\u003e\u003e\u003e h1 = ppdeep.hash('The equivalence of mass and energy translates into the well-known E = mc²')\n\u003e\u003e\u003e h1\n'3:RC0qYX4LBFA0dxEq4z2LRK+oCKI9VnXn:RvqpLB60dx8ilK+owX'\n\u003e\u003e\u003e h2 = ppdeep.hash('The equivalence of mass and energy translates into the well-known E = MC2')\n\u003e\u003e\u003e h2\n'3:RC0qYX4LBFA0dxEq4z2LRK+oCKI99:RvqpLB60dx8ilK+oA'\n```\n\nTo calculate level of similarity, use `compare()` function which returns an\ninteger value from 0 to 100 (full match):\n\n```\n\u003e\u003e\u003e ppdeep.compare(h1, h2)\n29\n```\n\nFunction `hash_from_file()` accepts a filename as argument and calculates the\nhash of the contents of the file:\n\n```\n\u003e\u003e\u003e ppdeep.hash_from_file('.bash_history')\n'1536:EXM36dG36x3KW732vOAcg3EP1qKlKozcK0z5G+lEPTssl/7eO7HOBF:tKlKozcWT0'\n```\n\nInstallation\n------------\n\n```\n$ pip install ppdeep\n```\n\nIf you want to use the latest version of the code, you can install it from Git:\n\n```\n$ git clone https://github.com/elceef/ppdeep.git\n$ cd ppdeep\n$ pip install .\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felceef%2Fppdeep","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felceef%2Fppdeep","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felceef%2Fppdeep/lists"}