# How to encrypt the email addresses for compliance with privacy and PII laws?

**URL:** <https://meta.discourse.org/t/how-to-encrypt-the-email-addresses-for-compliance-with-privacy-and-pii-laws/25122>\
**Category:** Feature\
**Tags:** privacy\
**Created:** [11 Febrero, 2015 09:55 UTC](https://meta.discourse.org/t/how-to-encrypt-the-email-addresses-for-compliance-with-privacy-and-pii-laws/25122 "2015-02-11T09:55:50Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![nileshtrivedi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nileshtrivedi/32/37212_2.png) [@nileshtrivedi](https://meta.discourse.org/u/nileshtrivedi)\
**Post date:** [12 Febrero, 2015 11:27 UTC](https://meta.discourse.org/t/how-to-encrypt-the-email-addresses-for-compliance-with-privacy-and-pii-laws/25122/4 "2015-02-12T11:27:19Z")

</div>

What are the things that would break if I implement encryption / decryption by simply overriding the getter and setter methods in the model? SQL queries on the email column will break for one. But what else?

---

_[View the full topic](https://meta.discourse.org/t/how-to-encrypt-the-email-addresses-for-compliance-with-privacy-and-pii-laws/25122)._
