If you used EncryptedField::encryptValue(), use decryptValue().
If you used EncryptedRow::encryptRow(), use decryptRow().
If you used EncryptedMultiRows::encryptRows(), use decryptRows().
In every context where you used the prepareForStorage() idiom, what you actually got was an array of size 2, where index 0 is the ciphertexts (which can be passed to one of the congruent methods listed above) and index 1 is your blind indexes. You can either store those inline or in a separate table to map rows.
How did you encrypt it?
EncryptedField::encryptValue()
, usedecryptValue()
.EncryptedRow::encryptRow()
, usedecryptRow()
.EncryptedMultiRows::encryptRows()
, usedecryptRows()
.In every context where you used the
prepareForStorage()
idiom, what you actually got was an array of size 2, where index 0 is the ciphertexts (which can be passed to one of the congruent methods listed above) and index 1 is your blind indexes. You can either store those inline or in a separate table to map rows.