I am trying to encrypt the form data before the form submission to secure the data without using the ssl. I got https://www.phpclasses.org/blog/package/9912/post/1-Encrypt-form-data-without-SSL-in-PHP.html and is working fine. But it seems it isn’t working in cakephp, if we decrypt it from the ctp file then it is working but it isn’t decrypt the values if we try to decrypt it from the controller. Did anyone use this class for the encryption? or anyone knows how we can encrypt the data before submitting the form? The above class is using the php openssl aes encryption/decryption method.