Question about Encrypt and Hashing

Hello!

I'm new on phalcon and have a question about two features, the Crypt and Security...I was reading and got the Crypt service working on a Cli projet to encrypt files and decrypt them. But when I will use the Encrypt service and when I will use the Hashing service?

Because on Vokuro app use the Encrypt service to store passwords, and I was thinking for password is not to store then with hash and not crypt? Is there any difference or is the same thing?

Hi,

Crypt is often used when you want to hide some information from user, but want to be able to decrypt. Example - cookies.

Hash when you don't need to decrypt information like passwords. There is mechanism how to check is hashed information is equal to the hash. More information here: https://olddocs.phalconphp.com/en/3.0.1/reference/security.html