{"data":{"slug":"github-aipoch-medical-research-skills-scientific-skills-other-file-security-toolkit-d6e6cdf37747","title":"Secure File Encryption and Redaction","summary":"Encrypt files, decrypt archives, and redact sensitive data in documents with password validation. The tool supports ZIP AES-256 encryption, single-file encryption, document redaction for common formats, and password strength checks. Outputs are generated locally with no network access.","url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-other-file-security-toolkit-d6e6cdf37747","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-aipoch-medical-research-skills-scientific-skills-other-file-security-toolkit-d6e6cdf37747","markdown_url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-other-file-security-toolkit-d6e6cdf37747.md","download_url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-other-file-security-toolkit-d6e6cdf37747\/download","category":{"slug":"data-research","name":"Data & Research"},"editor_note":"Ensure Python 3.10+ is installed and run `python -m pip install pyzipper cryptography python-docx python-pptx pillow` to install required dependencies before using the tool.","instructions":"---\nname: file-security-toolkit\ndescription: Encrypt\/decrypt local files, redact sensitive information in documents, and validate password strength when handling private data or preparing files for sharing.\nlicense: MIT\nauthor: AIPOCH\n---\n> **Source**: [https:\/\/github.com\/aipoch\/medical-research-skills](https:\/\/github.com\/aipoch\/medical-research-skills)\n\n# File Security Toolkit\n\n## When to Use\n\n- Use this skill when you need encrypt\/decrypt local files, redact sensitive information in documents, and validate password strength when handling private data or preparing files for sharing in a reproducible workflow.\n- Use this skill when a others task needs a packaged method instead of ad-hoc freeform output.\n- Use this skill when the user expects a concrete deliverable, validation step, or file-based result.\n- Use this skill when `scripts\/file_security.py` is the most direct path to complete the request.\n- Use this skill when you need the `file-security-toolkit` package behavior rather than a generic answer.\n\n## Key Features\n\n- Scope-focused workflow aligned to: Encrypt\/decrypt local files, redact sensitive information in documents, and validate password strength when handling private data or preparing files for sharing.\n- Packaged executable path(s): `scripts\/file_security.py`.\n- Structured execution path designed to keep outputs consistent and reviewable.\n\n## Dependencies\n\n- `Python`: `3.10+`. Repository baseline for current packaged skills.\n- `Third-party packages`: `not explicitly version-pinned in this skill package`. Add pinned versions if this skill needs stricter environment control.\n\n## Example Usage\n\n```bash\ncd \"20260316\/scientific-skills\/Others\/file-security-toolkit\"\npython -m py_compile scripts\/file_security.py\npython scripts\/file_security.py --help\n```\n\nExample run plan:\n1. Confirm the user input, output path, and any required config values.\n2. Edit the in-file `CONFIG` block or documented parameters if the script uses fixed settings.\n3. Run `python scripts\/file_security.py` with the validated inputs.\n4. Review the generated output and return the final artifact with any assumptions called out.\n\n## Implementation Details\n\n- Execution model: validate the request, choose the packaged workflow, and produce a bounded deliverable.\n- Input controls: confirm the source files, scope limits, output format, and acceptance criteria before running any script.\n- Primary implementation surface: `scripts\/file_security.py`.\n- Parameters to clarify first: input path, output path, scope filters, thresholds, and any domain-specific constraints.\n- Output discipline: keep results reproducible, identify assumptions explicitly, and avoid undocumented side effects.\n\n## 1. When to Use\nUse this skill when you need to:\n\n- Encrypt and archive a folder (or multiple files) into a password-protected ZIP (AES-256) before sharing or storing.\n- Encrypt a single file with a password (without creating a ZIP archive).\n- Redact sensitive information (e.g., emails, phone numbers, IDs) from documents before distribution.\n- Validate whether a password meets basic strength requirements before using it for encryption.\n\n## 2. Key Features\n- **ZIP AES-256 encryption\/decryption** for files and folders (`zip-encrypt`, `zip-decrypt`).\n- **Single-file password encryption\/decryption** (`file-encrypt`, `file-decrypt`).\n- **Privacy redaction** for common document formats (`redact`):\n  - Supported: `txt`, `md`, `csv`, `docx`, `pptx`\n  - Detects and removes\/masks: email addresses, phone numbers, ID numbers, and name\/address keywords.\n- **Password strength checking** (`check-password`) based on simple composition rules.\n- **Local-only processing**: operates on user-specified paths; no network access.\n\n## 3. Dependencies\nInstall dependencies with:\n\n```bash\npython -m pip install pyzipper cryptography python-docx python-pptx pillow\n```\n\n> Python version is not specified in the source document. Ensure your environment supports the listed packages.\n\n## 4. Example Usage\nEntry point script:\n\n```bash\npython scripts\/file_security.py --help\n```\n\n### Check password strength\n```bash\npython scripts\/file_security.py check-password --password \"Abcdefg1\"\n```\n\n### Encrypt \/ decrypt a single file\n```bash\npython scripts\/file_security.py file-encrypt \\\n  --input sample.txt \\\n  --output sample.txt.enc \\\n  --password \"Abcdefg1\"\n\npython scripts\/file_security.py file-decrypt \\\n  --input sample.txt.enc \\\n  --output sample_out.txt \\\n  --password \"Abcdefg1\"\n```\n\n### Encrypt \/ decrypt a folder or files as ZIP (AES-256)\n```bash\npython scripts\/file_security.py zip-encrypt \\\n  --input .\/my_folder \\\n  --output .\/my_folder.zip \\\n  --password \"Abcdefg1\"\n\npython scripts\/file_security.py zip-decrypt \\\n  --input .\/my_folder.zip \\\n  --output .\/my_folder_out \\\n  --password \"Abcdefg1\"\n```\n\n### Redact sensitive information in documents\n```bash\npython scripts\/file_security.py redact \\\n  --input .\/docs\/input.docx \\\n  --output .\/docs\/input.redacted.docx\n```\n\n## 5. Implementation Details\n\n### Commands and behavior\n- **`zip-encrypt` \/ `zip-decrypt`**\n  - Creates or extracts a ZIP archive using **AES-256** encryption.\n  - Intended for encrypting **multiple files or folders** as a single archive.\n- **`file-encrypt` \/ `file-decrypt`**\n  - Encrypts\/decrypts the contents of **one file** using a user-provided password.\n  - Output is written to the specified path; the original file is not modified unless you overwrite it.\n- **`redact`**\n  - Processes supported file types: `txt`, `md`, `csv`, `docx`, `pptx`.\n  - Applies redaction rules targeting:\n    - Email addresses\n    - Phone numbers\n    - ID numbers\n    - Name\/address keywords\n  - Produces a redacted output file at the specified location.\n- **`check-password`**\n  - Validates password strength using basic rules:\n    - Length **>= 8**\n    - Contains **uppercase** letters\n    - Contains **lowercase** letters\n    - Contains **numbers**\n\n### Security constraints (operational)\n- **No network access**: the script only processes local files.\n- **Path-scoped I\/O**: reads only from user-provided input paths and writes only to user-provided output paths.\n- **No sensitive logging**: avoids printing raw document content to logs.\n- **No credential retention**: does not store passwords\/keys.\n","use_cases":["Encrypt a folder into a password-protected ZIP (AES-256) before sharing.","Redact sensitive information from a Word document before distribution.","Validate password strength before using it for encryption."],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/aipoch\/medical-research-skills\/blob\/686e09dfdb45d9fa1a08664f06bb93769b3c9d91\/scientific-skills\/Other\/file-security-toolkit\/SKILL.md","source_commit":"686e09dfdb45d9fa1a08664f06bb93769b3c9d91","license":"MIT","version":null,"listing_approved_at":"2026-11-26","created_at":"2026-11-24T14:55:25.000000Z","updated_at":"2026-11-26T09:25:02.000000Z","seo_title":"Secure File Encryption and Redaction Tool","seo_description":"Encrypt files, decrypt archives, and redact sensitive data in documents with password validation. Supports ZIP AES-256 encryption, single-file encryption, document redact","seo_keywords":["file encryption tool","document redaction tool","password strength check","secure file sharing","zip encryption tool","data privacy tool"]}}