Open stsch9 opened 1 year ago
The reason the example is present is due to the fact that I did not sort out crypto operations as an own package (yet), but the overall handling should be documented.
A user of the dracoon package usually does not have to use any of it because using
await dracoon.upload(...)
# or download
await dracoon.download(...)
abstracts everything regarding crypto away. I'll leave this open and will refactor the function when I move out crypto as an own PyPi package.
Again, thanks for the feedback!
In the example it is described how a user has to encrypt a file client-side.
I don't think a user should worry about how to encrypt a file client-side. I think it is safer to replace these three functions by one function (see e.g. box function of nacl/libsodium or Hybrid encryption of tink)
Probably the function must also return the plaintext file_key to be able to distribute it to the other users.