{"id":25945948,"url":"https://github.com/tom474/hashing_performance_evaluation","last_synced_at":"2025-03-04T09:19:33.589Z","repository":{"id":277719762,"uuid":"933292183","full_name":"tom474/hashing_performance_evaluation","owner":"tom474","description":"[RMIT 2024C] COSC2539 - Security in Computing and IT - Cyber Security Research Paper and Presentation","archived":false,"fork":false,"pushed_at":"2025-02-15T16:15:39.000Z","size":3867,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-15T17:23:34.074Z","etag":null,"topics":["blockchain","hashing","merkle-tree","python","security"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","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/tom474.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-15T16:02:54.000Z","updated_at":"2025-02-15T16:17:14.000Z","dependencies_parsed_at":"2025-02-15T17:33:44.063Z","dependency_job_id":null,"html_url":"https://github.com/tom474/hashing_performance_evaluation","commit_stats":null,"previous_names":["tom474/hashing_performance_evaluation"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tom474%2Fhashing_performance_evaluation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tom474%2Fhashing_performance_evaluation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tom474%2Fhashing_performance_evaluation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tom474%2Fhashing_performance_evaluation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tom474","download_url":"https://codeload.github.com/tom474/hashing_performance_evaluation/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241818874,"owners_count":20025219,"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":["blockchain","hashing","merkle-tree","python","security"],"created_at":"2025-03-04T09:19:33.013Z","updated_at":"2025-03-04T09:19:33.573Z","avatar_url":"https://github.com/tom474.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hashing Performance Evaluation\n\nA performance evaluation of various **hashing algorithms** (`SHA256`, `Blake2b`, `Blake3`, `Blake2s`, `SHA512`), focusing on **Merkle tree efficiency, hashing speed, and resource consumption**. This project compares single-threaded and multi-threaded hashing performance and visualizes the results using grouped bar charts.  \n\n## Tech Stack\n\n- Python\n\n## Features\n\n- **Merkle Tree Performance**: Evaluates Merkle tree construction using different hashing algorithms.  \n- **Single-Threaded Hashing Speed**: Measures hashing efficiency in a single-threaded environment.  \n- **Multi-Threaded Hashing Speed**: Compares hashing speed across multiple threads.  \n- **Resource Consumption Analysis**: Tracks CPU and memory usage for different hash algorithms.  \n- **Visualization Reports**: Generates bar charts to compare performance results.\n\n## Quick Start\n\n### Prerequisites\n\nEnsure you have the following installed:\n\n- **Python 3.8 or higher**\n- **Pip** for managing Python packages\n\n### Run Blockchain Test\n\nStep 1: Install necessary libraries\n\n```bash\npip install -r requirements.txt\n```\n\nStep 2: Access blockchain directory\n\n```bash\ncd blockchain/\n```\n\nStep 3: Run server\n\n```bash\npython test_data/server.py\n```\n\nStep 4: Run client script\n\n```bash\npython test_data/client.py --results_dir \u003cresult_directory\u003e\n```\n\nExamples:\n\n```bash\npython test_data/client.py --results_dir Windows\npython test_data/client.py --results_dir Linux\npython test_data/client.py --results_dir MacOS\n```\n\nStep 5: Generate Visualization Reports\n\n```bash\npython visualization/main.py --folder \u003coutput_folder\u003e\n```\n\nExamples:\n\n```bash\npython visualization/main.py --folder Windows\npython visualization/main.py --folder MacOS\npython visualization/main.py --folder Linux\n```\n\n### Run Text Input Test\n\nStep 1: Unzip the data folder\n\n```bash\ncd text-input/code\nunzip data.zip\n```\n\nStep 2: Go back to text-input directory.\n\n```bash\ncd ..\n\npwd\n\u003e text-input/\n```\n\n\u003e Important: your current directory must be text-input\n\nStep 3: Run test to measure the speed among hashing algorithms in single thread.\n\n```bash\npython code/hashing/hashing_speed.py --output \u003coutput_folder\u003e\n```\n\nExamples:\n\n```bash\npython code/hashing/hashing_speed.py --output Windows\npython code/hashing/hashing_speed.py --output MacOS\npython code/hashing/hashing_speed.py --output Linux\n```\n\nStep 4: Run test to measure the speed among hashing algorithms in multi thread.\n\n```bash\npython code/hashing/hashing_speed_multithread.py --output \u003coutput_folder\u003e\n```\n\nExamples:\n\n```bash\npython code/hashing/hashing_speed_multithread.py --output Windows\npython code/hashing/hashing_speed_multithread.py --output MacOS\npython code/hashing/hashing_speed_multithread.py --output Linux\n```\n\nStep 5: Generate Visualization Reports\n\n```bash\npython visualization/hashing_visualization.py --folder \u003coutput_folder\u003e\n```\n\nExamples:\n\n```bash\npython visualization/hashing_visualization.py --folder Windows\npython visualization/hashing_visualization.py --folder MacOS\npython visualization/hashing_visualization.py --folder Linux\n```\n\nStep 6: Run test to measure the resource usage among hashing algorithms.\n\n```bash\npython code/resource_usage/resource_consumption.py --output \u003coutput_folder\u003e\n```\n\nExamples:\n\n```bash\npython code/resource_usage/resource_consumption.py --output Windows\npython code/resource_usage/resource_consumption.py --output MacOS\npython code/resource_usage/resource_consumption.py --output Linux\n```\n\nStep 7: Generate Visualization Reports\n\n```bash\npython visualization/resource_visualization.py --folder \u003coutput_folder\u003e\n```\n\nExamples:\n\n```bash\npython visualization/resource_visualization.py --folder Windows\npython visualization/resource_visualization.py --folder MacOS\npython visualization/resource_visualization.py --folder Linux\n```\n\n## Final Result\n\nYou can access results folder in the source code to observe the result.\n\n    .\n    ├── blockchain\n        ├── test_data\n            ├── results\n            ├── chain.py\n            ├── client.py\n            ├── config.py\n            ├── server.py\n        ├── visualization\n            ├── \u003coutput_folder\u003e\n            ├── main.py\n    ├── text-input\n        ├── code\n            ├── data\n            ├── hashing\n                ├── hashing_speed.py\n                ├── hashing_speed_multithread.py\n            ├── resource_usage\n                ├── resource_consumption.py\n        ├── results\n            ├── \u003coutput_folder\u003e\n                ├── hashing\n                ├── resource_usage\n        ├── visualization\n            ├── \u003coutput_folder\u003e\n                ├── hashing\n                ├── resource_usage\n            ├── hashing_visualization.py\n            ├── resource_visualization.py\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftom474%2Fhashing_performance_evaluation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftom474%2Fhashing_performance_evaluation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftom474%2Fhashing_performance_evaluation/lists"}