I wanted to achieve the following mechanism to encrypt a document
- each person in a group of N (user a, b, c...)has her own key;
- user a and user b somehow decided to encrypt document M, and they can read M in plaintext, and anyone other than a and b can't read the document M
- user a, user b and user c somehow decided to encrypt document N, and they all can read N in plaintext, but anyone other than a, b, c can't read the document N
Is it possible? If so, how to achieve such functionality? (I feel PGP can't solve this problem)