I started updating my application to be compliant with GDPR. This application is using latest version of Codeigniter (I updated now as well). I'm trying to encrypt user's email address using 'Encryption' library. I set my encryption key and I used $this->encryption->encrypt()
to encrypt my email address. Everything is fine until here, but how am I supposed to check if this email address is unique in my database anymore?
EDIT: I didn't change any default settings of Encryption library.
Thank you!