{"id":34046394,"url":"https://github.com/zshn1248/pyfilecrypto","last_synced_at":"2026-04-07T11:31:55.932Z","repository":{"id":246505246,"uuid":"820903045","full_name":"zshn1248/pyfilecrypto","owner":"zshn1248","description":"PyFileCrypto is a Python module for easy encryption and decryption of files using the cryptography library. It provides a simple interface to generate encryption keys, encrypt files, and decrypt files securely.","archived":false,"fork":false,"pushed_at":"2025-07-07T13:29:25.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-15T17:17:45.960Z","etag":null,"topics":["data","decryption","encryption","file","security-tools"],"latest_commit_sha":null,"homepage":"https://github.com/zshn1248/pyfilecrypto","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zshn1248.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-06-27T12:07:48.000Z","updated_at":"2025-07-07T13:27:55.000Z","dependencies_parsed_at":"2024-06-28T11:10:50.376Z","dependency_job_id":"15b2f08e-c784-42e5-a087-ee6afb5b6ca8","html_url":"https://github.com/zshn1248/pyfilecrypto","commit_stats":null,"previous_names":["zshn1248/pyfilecrypto"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/zshn1248/pyfilecrypto","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zshn1248%2Fpyfilecrypto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zshn1248%2Fpyfilecrypto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zshn1248%2Fpyfilecrypto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zshn1248%2Fpyfilecrypto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zshn1248","download_url":"https://codeload.github.com/zshn1248/pyfilecrypto/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zshn1248%2Fpyfilecrypto/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31511585,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["data","decryption","encryption","file","security-tools"],"created_at":"2025-12-13T23:48:09.287Z","updated_at":"2026-04-07T11:31:55.925Z","avatar_url":"https://github.com/zshn1248.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PyFileCrypto\n\n## Overview\n\nThe PyFileCrypto Module is a Python library for encrypting and decrypting files, compressing and extracting zip files with password protection. It utilizes `cryptography.fernet` for encryption and `pyzipper` for handling zip files with AES encryption.\n\n## Features\n\n- **File Encryption and Decryption**: Encrypt and decrypt files with strong AES encryption.\n- **Key Management**: Generate and securely store keys for encryption and decryption.\n- **Zip Compression**: Compress files into zip archives.\n- **Password-Protected Zip Files**: Create and extract zip files with password protection.\n\n## Installation\n\nTo install the Crypto Module, use the following command:\n\n```sh\npip install pyfilecrypto\n```\n\n## Usage\n### Method: 1\n#### Generate Encryption Key and Encrypt File\n``` python\nfrom pyfilecrypto.crypto import ACrypto\nACrypto.encryptFile(\"test.txt\", \"test.enc\", \"my_secret.key\")\n```\n\n#### Use key and Decrypt File\n``` python\nfrom pyfilecrypto.crypto import ACrypto\nACrypto.decryptFile(\"test.enc\", \"test.txt\", \"my_secret.key\")\n```\n\n### Method: 2\n#### Generate Encryption Key and Encrypt File\n``` python\nfrom pyfilecrypto.crypto import BCrypto\nBCrypto.Encrypt(filename = \"test.txt\")\n```\n\n#### Use keys and Decrypt file\n``` python\nfrom pyfilecrypto.crypto import BCrypto\nBCrypto.Decrypt(filename = \"test.txt\")\n```\n\n### Method: 3\n#### Generate Encryption key and Encrypt File\n``` python \nfrom pyfilecrypto.crypto import BCrypto\nBCrypto.crypt(filename = \"test.txt\", method = \"encrypt\")\n```\n\n#### Decrypt file using keys\n``` python\nfrom pyfilecrypto.crypto import BCrypto\nBCrypto.crypt(filename = \"test.txt\", method = \"decrypt\")\n```\n\n### Method: 4\n#### Encrypt and Decrypt file with keys\n``` python\nfrom pyfilecrypto.crypto import Crypto\nCrypto.crypt(filename = \"test.txt\", method = \"encrypt\", password = \"password\")\nCrypto.crypt(filename = \"test.txt\", method = \"decrypt\", password = \"password\")\n```\n## Documentation\nFor detailed documentation, please refer to the [DOCUMENTATION.md](https://github.com/zshn1248/pyfilecrypto/blob/main/DOCUMENTATION.md) file.\n\n## License\nPlease refer to LICENSE [here](https://github.com/zshn1248/pyfilecrypto/blob/main/LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzshn1248%2Fpyfilecrypto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzshn1248%2Fpyfilecrypto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzshn1248%2Fpyfilecrypto/lists"}