{"id":23820993,"url":"https://github.com/mingikang31/SiFT-v1.0","last_synced_at":"2026-05-09T19:30:16.769Z","repository":{"id":261021953,"uuid":"883012834","full_name":"mkang817415/SiFT-v1.0","owner":"mkang817415","description":"Cryptography Project","archived":false,"fork":false,"pushed_at":"2024-12-15T15:39:51.000Z","size":162,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-02T08:19:31.519Z","etag":null,"topics":["cryptography","encryption-decryption","python3"],"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/mkang817415.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-11-04T08:19:07.000Z","updated_at":"2024-12-15T15:39:55.000Z","dependencies_parsed_at":"2024-11-19T13:40:35.014Z","dependency_job_id":"ba3278bd-f9cc-445a-bd2c-e0a3faf02bcd","html_url":"https://github.com/mkang817415/SiFT-v1.0","commit_stats":null,"previous_names":["mkang817415/sift-v1.0"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkang817415%2FSiFT-v1.0","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkang817415%2FSiFT-v1.0/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkang817415%2FSiFT-v1.0/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkang817415%2FSiFT-v1.0/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mkang817415","download_url":"https://codeload.github.com/mkang817415/SiFT-v1.0/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240101764,"owners_count":19747893,"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":["cryptography","encryption-decryption","python3"],"created_at":"2025-01-02T08:19:39.521Z","updated_at":"2026-05-09T19:30:16.734Z","avatar_url":"https://github.com/mkang817415.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple File Transfer (SiFT) Protocol Version 1.0\n\n![License](https://img.shields.io/badge/license-MIT-blue.svg)\n![Python](https://img.shields.io/badge/python-3.9.6%2B-blue.svg)\n\n## Table of Contents\n\n- [Overview](#overview)\n- [Features](#features)\n- [Project Structure](#project-structure)\n- [Getting Started](#getting-started)\n  - [Prerequisites](#prerequisites)\n  - [Installation](#installation)\n  - [Generating RSA Keys](#generating-rsa-keys)\n- [Usage](#usage)\n  - [Running the Server](#running-the-server)\n  - [Running the Client](#running-the-client)\n  - [Logging In](#logging-in)\n  - [Available Commands](#available-commands)\n- [Example](#example)\n  - [Uploading a File](#uploading-a-file)\n- [Authors](#authors)\n- [License](#license)\n\n## Overview\n\nThe **Simple File Transfer (SiFT)** project is a secure file transfer system designed to allow clients to perform file operations on a server remotely. This implementation covers version **0.5** of the SiFT protocol, which includes non-cryptographic features such as sending commands for file manipulation and uploading/downloading files in smaller pieces. Additionally, the project extends to version **1.0**, incorporating cryptographic protections to ensure secure communication between the client and server.\n\n## Features\n\n- **User Authentication:** Secure login with session key establishment using RSA and AES encryption.\n- **File Operations:** Execute commands like `pwd`, `lst`, `chd`, `mkd`, `del`, `upl`, and `dnl` to manage files and directories on the server.\n- **Secure Communication:** Implements AES-GCM for encrypted message transfer and protects against replay attacks.\n- **File Transfer:** Supports uploading and downloading files in 1024-byte fragments with integrity verification using SHA-256 hashes.\n- **Extensible Protocols:** Designed to easily extend or modify protocol features as needed.\n\n## Project Structure\n```plaintext\nSiFT/\n├── specification/\n│   ├── SiFT v1.0 specification.md\n│   └── Cryptography Project Instructions.txt\n├── server/\n│   ├── keys/\n│   │   └── keypair.pem\n│   ├── rsa.py\n│   ├── server.py\n│   ├── siftprotocols/\n│   │   ├── siftcmd.py\n│   │   ├── siftdnl.py\n│   │   ├── siftlogin.py\n│   │   ├── siftmtp.py\n│   │   └── siftupl.py\n│   ├── users.txt\n│   └── users/\n│       ├── alice/\n│       ├── bob/\n│       └── charlie/\n├── client/\n│   ├── client.py\n│   ├── keys/\n│   │   └── public_key.pem\n│   ├── siftprotocols/\n│   │   ├── siftcmd.py\n│   │   ├── siftdnl.py\n│   │   ├── siftlogin.py\n│   │   ├── siftmtp.py\n│   │   └── siftupl.py\n│   ├── test_1.txt\n│   └── test_2.txt\n├── README.md\n├── requirements.txt\n└── LICENSE\n```\n\n## Getting Started\n\n### Prerequisites\n\n- **Python 3.8 or higher**\n- **pip** (Python package installer)\n- **OpenSSL** (for RSA key generation)\n\n### Installation\n\n1. **Clone the Repository:**\n\n   ```bash\n   git clone https://github.com/mkang817415/SiFT-v1.0.git\n   cd SiFT-v1.0\n   ```\n\n### Installation\n\n2. **Install Required Python Packages:**\n\n   It's recommended to use a virtual environment.\n\n   ```bash\n   python3 -m venv venv\n   source venv/bin/activate  # On Windows: venv\\Scripts\\activate\n   pip install -r requirements.txt\n    ```\n\n### Generating RSA Keys \nTo secure the communication between the client and server, generate an RSA key-pair for the server.  \n\n   ```bash\n   cd server\n   python3 rsa.py \n   ```\n\n## Usage\n\n### Running the Server\n\n1. **Navigate to Server Directory and Start the Server:**\n\n    ```bash\n    cd server \n    python3 server.py\n    ```\n\n### Running the Client\n\n1. **Open a New Terminal Window**\n\n2. **Navigate to Client Directory and Start the Client:**\n\n    ```bash\n    cd client \n    python3 client.py\n    ```\n    \n### Logging In: \n\nUpon starting the client, you will be prompted to log in. Use one of the predefined test users:\n\n- alice/aaa\n- bob/bbb\n- charlie/ccc\n\n#### Example:\n    ```plaintext\n    Username: alice\n    Password: aaa\n    ```\n\n### Available Commands\n\nAfter a successful login, type help to view available commands:\n\n- **pwd**: Print current working directory.\n- **lst**: List contents of the current directory.\n- **chd [directory]**: Change directory.\n- **mkd [directory]**: Make a new directory.\n- **del [file/directory]**: Delete a file or directory.\n- **upl [filename]**: Upload a file to the server.\n- **dnl [filename]**: Download a file from the server.\n- **exit**: Close the client.\n\n## Example\n\n### Uploading A File:\n1. **Command:**\n\n    ```bash\n    upl example.txt\n    ```\n    \n2. **Response:**\n\n   ```bash\n   upl\n   \u003crequest_hash\u003e\n   accept\n   ```\n   \n## Authors\n\n- **Mingi Kang** - *Collaborator* - [mkang817415](https://github.com/mkang817415)\n- **David Rhoades** - *Collaborator* - [David-Rhoadess](https://github.com/David-Rhoadess)\n- **Vagmin Viswanathan** - *Collaborator* - [vagminv](https://github.com/vagminv)\n- **Dr. Levente Buttyán** - *Instructor*\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmingikang31%2FSiFT-v1.0","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmingikang31%2FSiFT-v1.0","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmingikang31%2FSiFT-v1.0/lists"}