paragonie/ciphersweet

How to decrypt the encrypted data?

Closed this issue · 1 comments

How to decrypt the encrypted data?

How did you encrypt it?

  • 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.