Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Encryption with Hash Digest for Secure Data Transfer #3

Open
SaiDheerajPeketi opened this issue Oct 6, 2024 · 4 comments · May be fixed by #10
Open

Implement Encryption with Hash Digest for Secure Data Transfer #3

SaiDheerajPeketi opened this issue Oct 6, 2024 · 4 comments · May be fixed by #10
Labels
enhancement New feature or request medium level SaiDheerajPeketi mentor

Comments

@SaiDheerajPeketi
Copy link

🚀Feature Request

Description

The requested feature is to implement a mechanism that encrypts data in chunks before transfer, and then decrypts it after the transfer is complete. This system should include the generation of a hash digest to ensure the data’s integrity during transmission. By implementing this, data transfer becomes more secure and prevents tampering or corruption during transit.

Expected behavior

  1. Each chunk should be encrypted using the encryption logic.
  2. A hash digest should be generated for each chunk or the entire data set to verify integrity.
  3. Upon receiving the chunks, the app should verify them against the hash digest.
  4. After successful verification, the chunks should be decrypted and reassembled into the original file.

Current behavior

Currently, there is no encryption or verification process for data transfer, which leaves the transfer vulnerable to security issues like interception, tampering, or corruption.

Steps to reproduce

  1. Attempt a file transfer through the current system.
  2. Observe the lack of encryption or verification in the current implementation.

Possible Solution

  1. Encryption: Use the existing AES implementation to encrypt each chunk separately before transferring. Ensure that encryption keys are securely managed.

  2. Hash Digest: Compute a cryptographic hash (e.g., SHA-256) of each chunk before transfer. This hash will serve as a digest to verify that the data hasn’t been altered during transfer.

  3. Decryption and Verification: After the transfer, use the hash digest to verify each chunk or the complete data. If the data passes verification, proceed to decrypt each chunk and reconstruct the original file.

Why is this feature important to you?

This feature is critical to ensuring data security during transfer, especially when dealing with sensitive information. Encrypting the data adds a layer of security, while using a hash digest ensures that the data hasn’t been tampered with or corrupted during the transfer. This will increase user trust and prevent potential security breaches or data loss.

@SaiDheerajPeketi SaiDheerajPeketi added enhancement New feature or request SaiDheerajPeketi mentor medium level labels Oct 6, 2024
@anushkaVerma1007
Copy link

Thank you sir for assigning the issue. I have started to work on it.

@RITIK-CHAUDHRY
Copy link

is this open @SaiDheerajPeketi

@SaiDheerajPeketi
Copy link
Author

Yes its open @RITIK-CHAUDHRY

@anushkaVerma1007
Copy link

@SaiDheerajPeketi sir i have corrected the code....and commited the changes ......please review it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request medium level SaiDheerajPeketi mentor
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants