{"id":27123989,"url":"https://github.com/markkreel/encryption-cli","last_synced_at":"2026-05-27T23:31:20.123Z","repository":{"id":279260525,"uuid":"938231021","full_name":"Markkreel/Encryption-CLI","owner":"Markkreel","description":"A Python CLI tool that encrypts files with AES-256 and verifies integrity using SHA-256, offering a simple, secure way to protect sensitive data. ","archived":false,"fork":false,"pushed_at":"2025-05-29T11:35:02.000Z","size":136,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-29T13:08:57.106Z","etag":null,"topics":["aes-256","cli","cli-utility","cybersecurity","decryption","encryption","hash","pbkdf2","pep8","portfolio","pycryptodome","python","salt","security-tools","sha256","zlib"],"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/Markkreel.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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,"zenodo":null}},"created_at":"2025-02-24T16:17:49.000Z","updated_at":"2025-05-29T11:35:05.000Z","dependencies_parsed_at":"2025-02-24T17:32:46.228Z","dependency_job_id":"53e21a0c-0dc1-40ca-9a1b-081baf344fe0","html_url":"https://github.com/Markkreel/Encryption-CLI","commit_stats":null,"previous_names":["markkreel/filelock","markkreel/encryption-cli"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Markkreel/Encryption-CLI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Markkreel%2FEncryption-CLI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Markkreel%2FEncryption-CLI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Markkreel%2FEncryption-CLI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Markkreel%2FEncryption-CLI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Markkreel","download_url":"https://codeload.github.com/Markkreel/Encryption-CLI/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Markkreel%2FEncryption-CLI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33588345,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-27T02:00:06.184Z","response_time":53,"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":["aes-256","cli","cli-utility","cybersecurity","decryption","encryption","hash","pbkdf2","pep8","portfolio","pycryptodome","python","salt","security-tools","sha256","zlib"],"created_at":"2025-04-07T13:20:09.165Z","updated_at":"2026-05-27T23:31:20.106Z","avatar_url":"https://github.com/Markkreel.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Encryption CLI\n\nA Python utility for securely encrypting files with AES-256 encryption and zlib compression, with integrity verification and progress tracking.\n\n## Features\n\n- Complete CLI integration for encryption, decryption, and compression\n- Configurable compression levels through CLI arguments\n- Extensive logging and error handling\n- Support for multiple file formats\n- Progress tracking during operations\n\n## Specifications\n\n- AES-256 CBC mode encryption\n- Zlib compression with configurable levels (1-9)\n- SHA-256 hash verification for tamper detection\n\n## Installation\n\n```bash\n# Requires Python 3.9+\npip install -r requirements.txt\n```\n\n## Usage\n\n### Secure a File (Encrypt + Compress)\n\n```python\nfrom src.main import secure_file\n\nsecure_file(\n    \"sensitive.docx\",\n    \"your_strong_password\",\n    compression_level=7  # Optimal balance of speed/size\n)\n# Creates: sensitive.docx.flc\n```\n\n#### Encrypt Command\n\n```bash\npython src/cli.py encrypt file_path --password yourpassword --compression balanced\n```\n\nAvailable compression levels: none, fast, balanced, max\n\n### Restore a File (Decrypt + Decompress)\n\n```python\nfrom src.main import restore_file\n\nrestore_file(\n    \"sensitive.docx.flc\",\n    \"your_strong_password\"\n)\n# Restores: sensitive.docx\n```\n\n#### Decrypt Command\n\n```bash\npython src/cli.py decrypt file_path --password mypassword\n```\n\nOptional arguments:\n\n- `--output`: Specify custom output path\n\nFor more example commands and usage scenarios, refer to the `CLI_EXAMPLES.md` document or the `sample.sh` script included in the repository. The script includes examples of:\n\n- Direct file compression with different compression levels\n- Progress tracking during compression/decompression\n- Various compression configurations\n- Basic and advanced usage patterns\n\n## Technical Details\n\n### File Structure (.flc)\n\n```bash\n[1 byte: compression level] +\n[32 bytes: SHA-256 hash] +\n[zlib compressed data] +\n[AES-256 encrypted payload]\n```\n\n### Integrity Verification\n\n1. Generates SHA-256 hash of original data\n2. Stores hash in file header\n3. Verifies hash during restoration\n\n## Testing\n\n### Running Tests Locally\n\nRun test suite:\n\n```bash\npytest tests/ -v\n```\n\n### Running Tests with Docker\n\nYou can also run tests using Docker:\n\n```bash\n# Build the Docker image\ndocker build -t filelock-tests .\n\n# Run tests in a Docker container\ndocker run --rm filelock-tests\n```\n\nOr using Docker Compose:\n\n```bash\ndocker-compose up\n```\n\n## Contributing\n\n1. Fork the repository\n2. Create feature branch\n3. Submit pull request\n\n## License\n\nMIT License - See [LICENSE](LICENSE) for details\n\n**Last Updated:** 28-03-2025 ⸺ **Last Reviewed:** 28-03-2025\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkkreel%2Fencryption-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkkreel%2Fencryption-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkkreel%2Fencryption-cli/lists"}