Configure database schema for encrypted attributes
masterEncrypted values are stored as plain text and typically consume more space than unencrypted values.
Recommendations:
- Alter your table columns to the
TEXTtype to ensure enough space for the encrypted string. - If using
VARCHARorCHAR, verify that the column length is sufficient to hold the encrypted output.
Note on existing data:
If you add attributes to the $encryptable array in an existing model, unencrypted data currently in the database will be returned as-is. Once you save those values, they will be encrypted and function normally.