paragonie / ciphersweet

Fast, searchable field-level encryption for PHP projects
https://ciphersweet.paragonie.com
Other
437 stars 32 forks source link

How to decrypt the encrypted data? #55

Closed windchime18 closed 2 years ago

paragonie-security commented 4 years ago

How did you encrypt it?

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.