Hi, I need to encrypt some sensitive data (address, phone, ...) in a database table after a form is posted. And of course i need to decrypt when i read it. I use TableGateway with model like in the documentation.
What is the best way to achieve it? I created a service in Module.php: Is better to encrypt in the model ? In the controller ? I guess will be better to use my service directly to the model in a encrypt function. But i don't have access to the serviceLocator. And if i implement ServiceLocatorAwareInterface in my model and try call my service it cause a "Fatal error: Allowed memory size of 134217728 bytes exhausted" Thanks for your help! Michael -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/ZF2-How-to-use-BlockCipher-with-database-and-model-tp4660885.html Sent from the Zend Framework mailing list archive at Nabble.com. -- List: [email protected] Info: http://framework.zend.com/archives Unsubscribe: [email protected]
