{"id":24763675,"url":"https://github.com/grishnov/fletcher_checksum","last_synced_at":"2025-10-11T11:31:15.712Z","repository":{"id":87922755,"uuid":"258173770","full_name":"GRISHNOV/Fletcher_checksum","owner":"GRISHNOV","description":"Implementation of fletcher-16, fletcher-32, and fletcher-64 checksums in Python3 for working with string and bytes data","archived":false,"fork":false,"pushed_at":"2020-11-10T17:18:32.000Z","size":7,"stargazers_count":8,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-10T07:05:54.458Z","etag":null,"topics":["checksum","checksum-calculation","crypto","cryptography","fletcher","fletcher-checksum"],"latest_commit_sha":null,"homepage":"","language":"Python","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/GRISHNOV.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-23T10:52:33.000Z","updated_at":"2024-04-07T04:30:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"31723dcb-cfc9-4f2e-8299-d501626e8bf6","html_url":"https://github.com/GRISHNOV/Fletcher_checksum","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/GRISHNOV/Fletcher_checksum","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GRISHNOV%2FFletcher_checksum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GRISHNOV%2FFletcher_checksum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GRISHNOV%2FFletcher_checksum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GRISHNOV%2FFletcher_checksum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GRISHNOV","download_url":"https://codeload.github.com/GRISHNOV/Fletcher_checksum/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GRISHNOV%2FFletcher_checksum/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279007031,"owners_count":26084227,"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-11T02:00:06.511Z","response_time":55,"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":["checksum","checksum-calculation","crypto","cryptography","fletcher","fletcher-checksum"],"created_at":"2025-01-28T20:36:03.664Z","updated_at":"2025-10-11T11:31:15.707Z","avatar_url":"https://github.com/GRISHNOV.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eFletcher_checksum\u003c/h1\u003e\n\nImplementation of fletcher-16, fletcher-32, and fletcher-64 checksums in Python3 for working with string and bytes data.\n\n### Description\n\nThe Fletcher checksum is an algorithm for computing a position-dependent checksum devised by John G. Fletcher (1934–2012) at Lawrence Livermore Labs in the late 1970s. The objective of the Fletcher checksum was to provide error-detection properties approaching those of a cyclic redundancy check but with the lower computational effort associated with summation techniques.\n\n### API\n\nThis library has functions for working with string and byte data (which also allows you to calculate the checksum for your files).\n An example of usage is shown below.\n \n ```python\n \n# Importing classes with static methods for working with strings and bytes\nfrom FletcherChecksumLib import FletcherChecksumStr, FletcherChecksumBytes\n\n# Example of using string input\ntest_string_input = 'Hello, world!'\nchecksum_result = FletcherChecksumStr.get_fletcher16(test_string_input)\nprint(checksum_result)\n\n\u003e\u003e\u003e   { \n\u003e\u003e\u003e     'Fletcher16_dec': 29069,\n\u003e\u003e\u003e     'Fletcher16_hex': '0x718d' \n\u003e\u003e\u003e   }\n\n# Example of using bytes input\ntest_bytes_input = b'\\xd0\\x91\\xd0\\xb0\\xd0\\xb9\\xd1\\x82\\xd1\\x8b'\nchecksum_result = FletcherChecksumBytes.get_fletcher32(test_bytes_input)\nprint(checksum_result)\n\n\u003e\u003e\u003e   { \n\u003e\u003e\u003e     'Fletcher32_dec': 670893849,\n\u003e\u003e\u003e     'Fletcher32_hex': '0x27fd0719'\n\u003e\u003e\u003e   }\n\n# Example of using file(bytes) input\ntest_file_input = open('test.txt', 'rb')\ntest_bytes_input = test_file_input.read()\nchecksum_result = FletcherChecksumBytes.get_fletcher64(test_bytes_input)\nprint(checksum_result)\n\n\u003e\u003e\u003e   { \n\u003e\u003e\u003e     'Fletcher64_dec': 35532264440969,\n\u003e\u003e\u003e     'Fletcher64_hex': '0x205100000489'\n\u003e\u003e\u003e   }\n\n ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrishnov%2Ffletcher_checksum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrishnov%2Ffletcher_checksum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrishnov%2Ffletcher_checksum/lists"}