{"id":23339866,"url":"https://github.com/sid-sg/multithreaded-secure-ftp-client-server","last_synced_at":"2025-07-01T04:37:35.967Z","repository":{"id":266562172,"uuid":"895399529","full_name":"sid-sg/Multithreaded-Secure-FTP-Client-Server","owner":"sid-sg","description":"Secure FTP client \u0026 multithreaded server (using threadpool) with on-the-fly Gzip compression/decompression, secure packet transmission using OpenSSL, storage in SQLite DB and PBKDF2 hashing using OpenSSL","archived":false,"fork":false,"pushed_at":"2025-01-04T22:00:04.000Z","size":8410,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T14:44:10.706Z","etag":null,"topics":["cmake","gzip","multithreading","network-programming","openssl","openssl-evp","pbkdf2","socket-programming","sqlite","ssl","threadpool","tls","zlib"],"latest_commit_sha":null,"homepage":"","language":"C++","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/sid-sg.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":"2024-11-28T06:17:49.000Z","updated_at":"2025-03-12T03:52:00.000Z","dependencies_parsed_at":"2024-12-20T12:32:36.888Z","dependency_job_id":"17ddac22-048b-4cd5-9d0c-e34199a5f0bd","html_url":"https://github.com/sid-sg/Multithreaded-Secure-FTP-Client-Server","commit_stats":null,"previous_names":["sid-sg/multithreaded-ftps-server","sid-sg/multithreaded-ftp-client-server","sid-sg/multithreaded-secure-ftp-client-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sid-sg/Multithreaded-Secure-FTP-Client-Server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sid-sg%2FMultithreaded-Secure-FTP-Client-Server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sid-sg%2FMultithreaded-Secure-FTP-Client-Server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sid-sg%2FMultithreaded-Secure-FTP-Client-Server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sid-sg%2FMultithreaded-Secure-FTP-Client-Server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sid-sg","download_url":"https://codeload.github.com/sid-sg/Multithreaded-Secure-FTP-Client-Server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sid-sg%2FMultithreaded-Secure-FTP-Client-Server/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262899240,"owners_count":23381619,"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":["cmake","gzip","multithreading","network-programming","openssl","openssl-evp","pbkdf2","socket-programming","sqlite","ssl","threadpool","tls","zlib"],"created_at":"2024-12-21T04:15:30.891Z","updated_at":"2025-07-01T04:37:35.921Z","avatar_url":"https://github.com/sid-sg.png","language":"C++","readme":"# Preview\nhttps://github.com/user-attachments/assets/9bb2322e-b213-4fac-a544-2d6d4a10ce91\n\n---\n\n## Dependencies\nEnsure the following libraries are installed:\n\n### OpenSSL (For Secure FTP using SSL/TLS protocol and PBKDF2 hashing)\n```bash\nsudo apt-get install openssl libssl-dev\n```\n\n### Zlib (For Gzip compression/decompression)\n```bash\nsudo apt install zlib1g zlib1g-dev\n```\n\n### SQLite3 (For storing user information)\n```bash\nsudo apt install sqlite3 libsqlite3-dev\n```\n\n### build-essential (Required build tools)\n```bash\nsudo apt install build-essential \n```\n### Cmake (For building the project)\n```bash\nsudo apt install cmake\n```\n\n---\n\n## Generating SSL Certificate and Key for the Server\n\n1. Navigate to the `/security` directory inside the server folder:\n   ```bash\n   cd server/security\n   ```\n\n2. Generate a self-signed SSL certificate and private key:\n   ```bash\n   openssl req -x509 -nodes -days 365 -newkey rsa:2048 \\\n   -keyout server.key -out server.crt -config openssl.cnf\n   ```\n\n3. Copy the generated certificate (`server.crt`) to the client’s `/security` directory:\n   ```bash\n   cp server.crt ../../client/security\n   ```\n\n---\n\n## Build Instructions\n\n### Build the Server\n1. Navigate to the server directory:\n   ```bash\n   cd server\n   ```\n\n2. Create a build directory and compile:\n   ```bash\n   mkdir -p build\n   cd build\n   cmake ..\n   cmake --build .\n   ```\n\n3. Run the server:\n   ```bash\n   sudo ./bin/server \u003cserver_portno\u003e\n   ```\n   **Example:** \n   ```bash\n   sudo ./bin/server 8000\n   ```\n\n### Build the Client\n1. Navigate to the client directory:\n   ```bash\n   cd client\n   ```\n\n2. Create a build directory and compile:\n   ```bash\n   mkdir -p build\n   cd build\n   cmake ..\n   cmake --build .\n   ```\n\n3. Run the client:\n   ```bash\n   ./bin/client \u003cserver_ipaddress\u003e \u003cserver_portno\u003e\n   ```\n   **Example:**\n   ```bash\n   ./bin/client 127.0.0.1 8000\n   ```\n\n---\n\n## Debugging with Valgrind\n\nValgrind can be used to check memory leaks and runtime errors.\n\n### Debugging the Server\n```bash\nsudo valgrind --leak-check=full --track-origins=yes ./bin/server \u003cserver_portno\u003e\n```\n\n### Debugging the Client\n```bash\nvalgrind --leak-check=full --track-origins=yes ./bin/client \u003cserver_ipaddress\u003e \u003cserver_portno\u003e\n```\n\n---\n\n## Example Usage\n### Start the Server\n```bash\nsudo ./bin/server 8000\n```\n\n### Start the Client\n```bash\n./bin/client 127.0.0.1 8000\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsid-sg%2Fmultithreaded-secure-ftp-client-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsid-sg%2Fmultithreaded-secure-ftp-client-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsid-sg%2Fmultithreaded-secure-ftp-client-server/lists"}