thecoalman wrote: Fri Jun 28, 2019 1:27 pm
I proposed encrypting PM's in the "Ideas" forum. The one thing I suggested was adding user option for recovery through admin key.
- Fully private, no recovery possible if you lose your password/key.
- Fully encrypted on the server. PM's can be recovered by admin in the event you lose your password but they are also readable by admin.
I realize this would require duplicate column for storing PM's encrypted using admin key and additional processing but that would really not be a concern for me.
That said since this in an extension my biggest concern would be support going forward. This is not something you can back out of if support is dropped.
just fyi, you wouldn't need a duplicate column and ~2x the storage requirements.
you could do it
like in GPG for example.
first, generate an intermediate key, and encrypt the message with that.
next, for each recipient (probably the main recipient and the admin in this case), encrypt this intermediate key with his key. prepend the results to the encrypted message as a header so that any recipient has access to the intermediate key and therefore to the message.
imo, in this extension, the master (admin) key should be an optional feature, and there's no reason why you couldn't enable/disable it at any time for new messages going forward.