In this recipe, we will create a solution for encrypting and decrypting data. This could be useful for creating a storage vault website that allows users to securely store their data in such a way that even the admins cannot access it or it could also be used to securely store valuable data on a remote machine. This recipe will use a reversible process so that the data can be decrypted after being encrypted. Although it is not necessary to understand the miraculous math involved with this process it is vital to understand one critical concept: Don't lose the encryption key or give anyone access to it. Other than that big one, it's all just good times.
This recipe uses the Phalcon Developer Tools which we will use to setup a project skeleton.