About Symmetric Encryption for Text Fields
Store values of text fields in the database encrypted
|Category 1||Field Types|
Fieldtype modules that represent a data type used by fields.
|Category 2||Proof of Concept|
Proof of concept modules are designed as examples or starting points for others to build from. May not be ideal for users wanting to plug-n-play.
Non-stable. Not yet intended for use in production environments. *
|Date Added||March 11, 2018|
|Last Updated||October 11, 2018|
This module's files should be placed in /site/modules/SymmetricEncryptedText/
How to install or uninstall modules
ProcessWire module - symmetric encryption for text based fields
This module adds an encryption option to all text fields (and those derived from FieldtypeText).
Field contents are encrypted using a symmetric key when a page is saved and decrypted when loaded from the database.
The module by default uses sodium (if loaded) in PHP versions >= 7.2, otherwise it falls back to the bundled phpseclib.
Multi-Language fiels are supported too.
Setting a field to encrypted and saving values in those fields is a one-way road!
Once encrypted, the contents cannot be unencrypted without writing a program to do so. Disabling the encryption option on a field after the fact gets you encrypted "garbage".
- Download the zipped module through the green button at the top right of the GitHub repo or from the official PW module repository
- Extract in its own directory under site/modules.
- In the backend, click "Modules" -> "Refresh", then install "Symmetric Encryption for Text Fields".
- Go to module settings. An appropriately sized, random key will be generated if this is your first use.
- Copy the supplied entry into site/config.php
- Add fields or configure already present fields. On the "Details" tab you can enable encryption for the field in question
- Edit a page with such a field, enter a value there, save and enjoy
Existing, unencrypted values are left untouched until a new value is saved. That way, you can do a smooth upgradeto encryption, but you have to save all pre-populated pages to have their values encrypted in the database. Thus it is recommended to avoid adding encryption to already populated fields.
You can hook after SymmetricEncryptedText::loadKey to retrieve your key from somewhere else, e.g. a different server.
See LICENSE file in the toplevel directory
Use at your own risk.
No comments yet. Be the first to post!
Your e-mail is kept confidential and not included with your comment. Website is optional.
- Admin Helpers
- Core Modules
- Development Tools
- Field Types
- Input Fields
- Language Modules
- Language Packs
- Markup Generation
- Premium Modules
- Process Modules
- Proof of Concept
- Site Profiles
- Social, Feeds, Services
- Text Formatters
- Other Modules
- Users and Access
*Use modules at your own risk. There are no guarantees or warranties. It is recommended that you backup your site and database before installing new modules.