bhscomputerscienceclub / coulomb_frontend

Other
0 stars 0 forks source link

encryption of files #5

Open karmanyaahm opened 3 years ago

karmanyaahm commented 3 years ago

related to backfrontend of sharer page

https://github.com/HITGmbH/py-convergent-encryption probably as follows, very rough plan:

  1. Read the first 256kb of the file
  2. https://github.com/HITGmbH/py-convergent-encryption with harcoded key
  3. write the encrypted bytes to a file with the filename being the hash of this block
  4. read next 256kb, do 2 and 3 (but new file for 3 ofc)
  5. repeat until end of file

Save the pre-encryption and post-encryption hashes of each block, and block size from step 2 somewhere (probably just a list when the process is happening).

Save the list of hashes into a storage place, see issue #6 .