Skip to content

File Encryption/Decryption Script#62

Open
HarshYadav152 wants to merge 1 commit intoVaibhav2154:mainfrom
HarshYadav152:e-d-script
Open

File Encryption/Decryption Script#62
HarshYadav152 wants to merge 1 commit intoVaibhav2154:mainfrom
HarshYadav152:e-d-script

Conversation

@HarshYadav152
Copy link

This PR solve issue #35

Changes Made

New Files Added

  1. security/file_encryptor.py - Main encryption/decryption script
  2. security/docs/File_Encryptor.md - Comprehensive documentation

Features Implemented

  • 🔒 Strong Encryption: Uses Fernet (AES-128-CBC) with PKCS7 padding
  • 📁 Multiple File Support: Documents, images, videos, archives
  • 🛡️ Safety Features: Automatic backups, file size limits, permission checks
  • 🎯 User-Friendly: Clear progress reporting, detailed error messages
  • 📊 Comprehensive Logging: Operation tracking and audit trails
  • 🔑 Flexible Key Management: Custom key locations, automatic generation

Key Technical Aspects

  • Security: Military-grade encryption with integrity protection
  • Reliability: Automatic rollback on failures, backup creation
  • Performance: Efficient batch processing, memory management
  • Compatibility: Python 3.6+, cross-platform support

Usage Examples

**Encrypt files**
python file_encryptor.py encrypt document.pdf images/
**Decrypt files**  
python file_encryptor.py decrypt encrypted_files/ --key custom_key.key

Security Considerations
Secure key generation and storage

File integrity verification

Safe operation with automatic backups

Comprehensive error handling

@vercel
Copy link

vercel bot commented Oct 1, 2025

@HarshYadav152 is attempting to deploy a commit to the vaibhav2154's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link

github-actions bot commented Oct 1, 2025

Thanks for creating a PR for your Issue! ☺️

We'll review it as soon as possible.
In the meantime, please double-check the file changes and ensure that all commits are accurate.

If there are any unresolved review comments, feel free to resolve them. 🙌🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant