Vikranth3140 / Encryption-Decryption-Tool

This Python tool provides a flexible way to encrypt and decrypt files using Stored Key Method and Password-Based Key Derivation.
MIT License
4 stars 5 forks source link

Implement Password-Based Key Derivation for File Encryption/Decryption Script #1

Closed Vikranth3140 closed 1 month ago

Vikranth3140 commented 1 month ago

This pull request enhances the file encryption and decryption script by introducing password-based key derivation using the PBKDF2-HMAC-SHA256 algorithm. Instead of storing the encryption key on disk, the key is now securely derived from a user-provided password. This change improves security by eliminating the need to manage and protect a separate key file.


Key Changes:


Benefits:


Usage Instructions:


Security Recommendations:

Vikranth3140 commented 1 month ago

We have updated the file encryption and decryption script to enhance security by introducing a unique, randomly generated salt for each encryption operation. The salt is now securely generated and stored alongside the encrypted data by prepending it to the encrypted file. This change improves the robustness of the password-based key derivation process and provides stronger protection against certain types of cryptographic attacks.


Key Changes:


Benefits of Using a Random Salt:


Usage Instructions:


Important Considerations:


Summary:

This update significantly enhances the security of the encryption/decryption script by ensuring that each encryption operation is unique due to the use of random salts. By storing the salt with the encrypted data, we maintain ease of use while providing stronger protection against attacks.