This is mostly a usability ticket. I want users to be able to do something like this:
<?php
/* use ... */
$fieldset = new EncryptedFieldSet($engine, 'contacts');
$fieldset
->addTextField('ssn')
->addBooleanField('hivstatus');
$fieldset->addCompoundIndex('contact_ssnlast4_hivstatus', ['ssn', 'hivstatus'], 32)
->addTransform('ssn', new LastFourDigits());
// Adds a transformation to only the SSN before calculating that index
This is mostly a usability ticket. I want users to be able to do something like this:
Once the fieldset is defined:
Searching:
Decrypting all encrypted fields in a row from the array: