Let’s say I have a website where people keep a personal diary (diary content type). I have configured permissions so that each user can only read, write, and view his/her own diary.
Users can create and submit several different content types on the site; only the diary content type needs to be private.
I would like to encrypt diaries per user, ideally by tying the encryption to the user’s name and password.
I surveyed the encryption modules available for Drupal, and here are the only ones with 300+ installs:
- Encrypt: makes use of Real AES module and the Key module
- Encryption: simpler to configure than Encrypt, single module
- Dbee, which encrypts just the email addresses in the database–nifty
In addition, there is the Pubkey Encrypt module, which is an abandoned Drupal 8 module that allows encryption of data per user role.
So, to get encryption per user, I guess I would have to write this myself.
How can I encrypt content per user for a specific content type?
If this is really hard to do, I would also like to hear an answer that simply explains why this problem is harder than I think it is.