Back to Spacedrive

Per-Library Encryption Policies for Public Sharing

.tasks/core/SEC-007-per-library-encryption-policies-for-public-sharing.md

0.4.3865 B
Original Source

Description

Implement per-library encryption policies to enable secure public sharing of files. This will allow users to create libraries with different levels of security, depending on their needs.

Implementation Steps

  1. Design a system for defining and managing encryption policies for each library.
  2. Implement the logic to enforce the encryption policy for all files in a library.
  3. For publicly shared libraries, use a well-known public key for encryption.
  4. For private libraries, use a user-specific key for encryption.

Acceptance Criteria

  • A user can create a library with a specific encryption policy.
  • The encryption policy is enforced for all files in the library.
  • Files in a publicly shared library can be decrypted by anyone with the public key.
  • Files in a private library can only be decrypted by the owner.