Skip to content

New idea: encrypt_file function #107

@stsch9

Description

@stsch9

In the example it is described how a user has to encrypt a file client-side.

  1. generate plain file key
  2. encrypt bytes/file (AES 256 GCM)
  3. encrypt file key (with public key of keypair)

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)

encrypt_file(file, plublic key):
   return enc_file, enc_file_key, (file_key)

Probably the function must also return the plaintext file_key to be able to distribute it to the other users.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions