We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Method for generating key for \Phalcon\Crypt

Suggest method which you using for generating key ?

For example using \Phalcon\Security\Random (and how exactly)

What do you mean? The cipher? Or the Hash algorithm?

I mean $key for $crypt->encrypt($text, $key);

from here https://docs.phalcon.io/en/3.4/crypt#basic-usage