{"id":19666256,"url":"https://github.com/cynegeirus/static-file-manager","last_synced_at":"2026-05-11T13:38:05.651Z","repository":{"id":256052434,"uuid":"854216235","full_name":"cynegeirus/static-file-manager","owner":"cynegeirus","description":"A simple Web API for uploading, encrypting, storing, and downloading files with blockchain-based verification.","archived":false,"fork":false,"pushed_at":"2024-09-08T17:24:59.000Z","size":2116,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-10T02:41:12.434Z","etag":null,"topics":["blockchain","blockchain-technology","static-file","static-file-app","static-file-server","static-files","static-files-server"],"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/cynegeirus.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":"2024-09-08T17:22:11.000Z","updated_at":"2024-09-08T17:25:59.000Z","dependencies_parsed_at":"2024-09-09T08:32:54.681Z","dependency_job_id":null,"html_url":"https://github.com/cynegeirus/static-file-manager","commit_stats":null,"previous_names":["cynegeirus/static-file-manager"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cynegeirus%2Fstatic-file-manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cynegeirus%2Fstatic-file-manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cynegeirus%2Fstatic-file-manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cynegeirus%2Fstatic-file-manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cynegeirus","download_url":"https://codeload.github.com/cynegeirus/static-file-manager/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240976193,"owners_count":19887439,"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","blockchain-technology","static-file","static-file-app","static-file-server","static-files","static-files-server"],"created_at":"2024-11-11T16:26:54.634Z","updated_at":"2025-11-22T13:00:52.257Z","avatar_url":"https://github.com/cynegeirus.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Static File Manager\n\nA simple Web API for uploading, encrypting, storing, and downloading files with blockchain-based verification.\n\n## Features\n\n- **File Upload**: Upload files, encrypt them, and store securely on the server.\n- **File Download**: Decrypt and download files using their unique hash.\n- **Blockchain Integration**: Add each uploaded file's hash to a blockchain for integrity verification.\n\n## Technologies Used\n\n- **ASP.NET Core**: Web API framework for building the application.\n- **Blockchain**: A simple blockchain implementation for file integrity tracking.\n- **File Encryption**: AES encryption for securely storing files.\n- **Dependency Injection**: Used to manage dependencies for encryption and blockchain helpers.\n\n## Prerequisites\n\n- [.NET 8.0 SDK](https://dotnet.microsoft.com/download)\n- Any modern IDE or text editor (e.g., Visual Studio, Visual Studio Code)\n\n## API Endpoints\n\n### Upload File\n\n- **URL**: `/api/FileManager/Upload`\n- **Method**: `POST`\n- **Description**: Uploads a file, encrypts it, and stores it on the server. A hash is generated and added to the blockchain.\n- **Request Parameters**:\n  - `file` (form-data): The file to upload.\n- **Response**: \n  - `200 OK`: File uploaded successfully, along with the file hash and extension.\n  - `404 Not Found`: File not provided.\n\n### Download File\n\n- **URL**: `/api/FileManager/Download?hash={file_hash}`\n- **Method**: `GET`\n- **Description**: Downloads the file by its hash, decrypts it, and returns it to the client.\n- **Request Parameters**:\n  - `hash` (query string): The hash of the file to download.\n- **Response**:\n  - `200 OK`: File downloaded successfully.\n  - `400 Bad Request`: Invalid or missing hash value.\n  - `404 Not Found`: File not found.\n\n## Blockchain Implementation\n\nThe project includes a basic blockchain implementation to verify the integrity of uploaded files. Each block contains:\n\n- **Index**: The position of the block in the chain.\n- **Timestamp**: The time of the block's creation.\n- **Hash**: The SHA-256 hash of the encrypted file.\n- **Extension**: The file extension of the uploaded file.\n\nNew blocks are created and added to the chain each time a file is uploaded.\n\n## Security\n\nThis project uses AES encryption for securing files before they are stored on the server. Files are decrypted only when they are requested for download, ensuring secure storage.\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE). See the license file for details.\n\n## Issues, Feature Requests or Support\n\nPlease use the Issue \u003e New Issue button to submit issues, feature requests or support issues directly to me. You can also send an e-mail to akin.bicer@outlook.com.tr.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcynegeirus%2Fstatic-file-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcynegeirus%2Fstatic-file-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcynegeirus%2Fstatic-file-manager/lists"}